Use production config in production and dev config in dev.
This commit is contained in:
parent
25c4054c19
commit
67147240b6
4 changed files with 28 additions and 8 deletions
|
@ -11,9 +11,7 @@ import endpoints.registry
|
|||
# Remove this for prod config
|
||||
application.debug = True
|
||||
|
||||
if __name__ == '__main__':
|
||||
FORMAT = '%(asctime)-15s - %(levelname)s - %(pathname)s - ' + \
|
||||
'%(funcName)s - %(message)s'
|
||||
logging.basicConfig(format=FORMAT, level=logging.DEBUG)
|
||||
logging.basicConfig(**application.config['LOGGING_CONFIG'])
|
||||
|
||||
if __name__ == '__main__':
|
||||
application.run(port=5001, debug=True)
|
||||
|
|
Reference in a new issue