chore(initdb): allow overriding logging level with env var
This commit is contained in:
parent
243b0dc4fc
commit
b11ca3043c
1 changed files with 1 additions and 1 deletions
|
@ -836,7 +836,7 @@ if __name__ == '__main__':
|
|||
parser.add_argument('--simple', action='store_true')
|
||||
args = parser.parse_args()
|
||||
|
||||
log_level = getattr(logging, app.config['LOGGING_LEVEL'])
|
||||
log_level = os.environ.get('LOGGING_LEVEL', getattr(logging, app.config['LOGGING_LEVEL']))
|
||||
logging.basicConfig(level=log_level)
|
||||
|
||||
if not IS_TESTING_REAL_DATABASE and not isinstance(db.obj, SqliteDatabase):
|
||||
|
|
Reference in a new issue