benjolo commited on
Commit
c13b160
1 Parent(s): 707c403

Update backend/main.py

Browse files
Files changed (1) hide show
  1. backend/main.py +6 -0
backend/main.py CHANGED
@@ -9,6 +9,12 @@ import logging
9
  ###############################################
10
  # Configure logger
11
  ###############################################
 
 
 
 
 
 
12
  logging.basicConfig(filename="output.log",
13
  filemode='w',
14
  format='%(asctime)s,%(msecs)d %(name)s %(levelname)s %(message)s',
 
9
  ###############################################
10
  # Configure logger
11
  ###############################################
12
+
13
+ class MyUvicornWorker(UvicornWorker):
14
+ CONFIG_KWARGS = {
15
+ "log_config": "logging.yaml",
16
+ }
17
+
18
  logging.basicConfig(filename="output.log",
19
  filemode='w',
20
  format='%(asctime)s,%(msecs)d %(name)s %(levelname)s %(message)s',