Try logging to stderr.
This commit is contained in:
parent
67147240b6
commit
afb5dbaaa4
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
import logging
|
import logging
|
||||||
|
import sys
|
||||||
|
|
||||||
from peewee import MySQLDatabase, SqliteDatabase
|
from peewee import MySQLDatabase, SqliteDatabase
|
||||||
|
|
||||||
|
@ -64,7 +65,7 @@ class DebugConfig(FlaskConfig, MailConfig, LocalStorage, SQLiteDB):
|
||||||
class ProductionConfig(FlaskConfig, MailConfig, S3Storage, RDSMySQL):
|
class ProductionConfig(FlaskConfig, MailConfig, S3Storage, RDSMySQL):
|
||||||
REGISTRY_SERVER = 'quay.io'
|
REGISTRY_SERVER = 'quay.io'
|
||||||
LOGGING_CONFIG = {
|
LOGGING_CONFIG = {
|
||||||
'filename': '/opt/python/log/application.log',
|
'stream': sys.stderr,
|
||||||
'level': logging.DEBUG,
|
'level': logging.DEBUG,
|
||||||
'format': LOG_FORMAT,
|
'format': LOG_FORMAT,
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue