update
This commit is contained in:
parent
d2e821c861
commit
ce92bd68dc
10
setting.py
10
setting.py
@ -3,9 +3,6 @@ import os
|
|||||||
import pymongo
|
import pymongo
|
||||||
from loguru import logger
|
from loguru import logger
|
||||||
|
|
||||||
logger.add('log.log', format="{time} {level} {name}:{line} {message}", level="INFO",
|
|
||||||
rotation="100 MB", retention='7 days',
|
|
||||||
enqueue=True)
|
|
||||||
|
|
||||||
|
|
||||||
class Config:
|
class Config:
|
||||||
@ -26,9 +23,16 @@ class Config:
|
|||||||
class Production(Config):
|
class Production(Config):
|
||||||
DB_PREFIX = 'game'
|
DB_PREFIX = 'game'
|
||||||
|
|
||||||
|
logger.add('log.log', format="{time} {level} {name}:{line} {message}", level="INFO",
|
||||||
|
rotation="100 MB", retention='7 days',
|
||||||
|
enqueue=True)
|
||||||
|
|
||||||
|
|
||||||
class Debug(Config):
|
class Debug(Config):
|
||||||
DB_PREFIX = 'debug'
|
DB_PREFIX = 'debug'
|
||||||
|
logger.add('log.log', format="{time} {level} {name}:{line} {message}", level="DEBUG",
|
||||||
|
rotation="100 MB", retention='7 days',
|
||||||
|
enqueue=True)
|
||||||
|
|
||||||
|
|
||||||
settings = Production if os.environ.get('xlegudata_env') == 'production' else Debug
|
settings = Production if os.environ.get('xlegudata_env') == 'production' else Debug
|
||||||
|
Loading…
Reference in New Issue
Block a user