Skip to content

Commit

Permalink
Listen: set minimum logging level to INFO
Browse files Browse the repository at this point in the history
This way we can see the server requests.
  • Loading branch information
MinchinWeb committed Oct 5, 2021
1 parent 0b9a488 commit 2b631ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pelican/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,10 @@ def autoreload(args, excqueue=None):


def listen(server, port, output, excqueue=None):
# set logging level to at least "INFO" (so we can see the server requests)
if logger.level < logging.INFO:
logger.setLevel(logging.INFO)

RootedHTTPServer.allow_reuse_address = True
try:
httpd = RootedHTTPServer(
Expand Down

0 comments on commit 2b631ab

Please sign in to comment.