Skip to content

Commit

Permalink
Move Logging initilization before get_app call
Browse files Browse the repository at this point in the history
  • Loading branch information
Drumor committed Jun 23, 2023
1 parent af0cee6 commit c0bd8c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inginious-webapp
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,13 @@ if not configfile:

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

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

application, close_app_func = inginious.frontend.app.get_app(config)

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

Expand Down

0 comments on commit c0bd8c6

Please sign in to comment.