Skip to content

Commit

Permalink
Move Logging initialization before get_app call for webdav
Browse files Browse the repository at this point in the history
  • Loading branch information
Drumor committed Jun 23, 2023
1 parent c0bd8c6 commit d02e782
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inginious-webdav
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ if not configfile:

# Load configuration and application (!!! For mod_wsgi, application identifier must be present)
config = load_json_or_yaml(configfile)
application = inginious.frontend.webdav.get_app(config)

# Init logging
init_logging(config.get('log_level', 'INFO'))
logging.getLogger("inginious.webdav").info("http://%s:%d/" % (host, int(port)))
application = inginious.frontend.webdav.get_app(config)


if 'SERVER_SOFTWARE' in os.environ: # cgi
os.environ['FCGI_FORCE_CGI'] = 'Y'
Expand Down

0 comments on commit d02e782

Please sign in to comment.