test logging
This commit is contained in:
parent
bd39977741
commit
28dab84cad
1 changed files with 7 additions and 1 deletions
|
@ -1,4 +1,10 @@
|
||||||
bind = "0.0.0.0:5000"
|
bind = "0.0.0.0:5000"
|
||||||
workers = 2
|
workers = 2
|
||||||
threads = 4
|
threads = 4
|
||||||
access-logfile -
|
|
||||||
|
import sys
|
||||||
|
|
||||||
|
accesslog = '-' # Log to stdout
|
||||||
|
errorlog = '-' # Log to stderr
|
||||||
|
|
||||||
|
sys.stdout = sys.stderr # Redirect stdout to stderr
|
||||||
|
|
Reference in a new issue