Make the logs from the build manager more useful.
This commit is contained in:
parent
265aeabf60
commit
725808a4f8
1 changed files with 3 additions and 1 deletions
|
@ -23,6 +23,8 @@ EXTERNALLY_MANAGED = 'external'
|
||||||
DEFAULT_WEBSOCKET_PORT = 8787
|
DEFAULT_WEBSOCKET_PORT = 8787
|
||||||
DEFAULT_CONTROLLER_PORT = 8686
|
DEFAULT_CONTROLLER_PORT = 8686
|
||||||
|
|
||||||
|
LOG_FORMAT = "%(asctime)s [%(process)d] [%(levelname)s] [%(name)s] %(message)s"
|
||||||
|
|
||||||
def run_build_manager():
|
def run_build_manager():
|
||||||
if not features.BUILD_SUPPORT:
|
if not features.BUILD_SUPPORT:
|
||||||
logger.debug('Building is disabled. Please enable the feature flag')
|
logger.debug('Building is disabled. Please enable the feature flag')
|
||||||
|
@ -70,5 +72,5 @@ def run_build_manager():
|
||||||
server.run('0.0.0.0', websocket_port, controller_port, ssl=ssl_context)
|
server.run('0.0.0.0', websocket_port, controller_port, ssl=ssl_context)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
logging.basicConfig(level=logging.DEBUG)
|
logging.basicConfig(level=logging.DEBUG, format=LOG_FORMAT)
|
||||||
run_build_manager()
|
run_build_manager()
|
||||||
|
|
Reference in a new issue