Unverified Commit 6aed0445 authored by Chayenne's avatar Chayenne Committed by GitHub
Browse files

turn off log (#1895)

parent 908dd7f9
...@@ -738,6 +738,12 @@ class Engine: ...@@ -738,6 +738,12 @@ class Engine:
# before python program terminates, call shutdown implicitly. Therefore, users don't have to explicitly call .shutdown() # before python program terminates, call shutdown implicitly. Therefore, users don't have to explicitly call .shutdown()
atexit.register(self.shutdown) atexit.register(self.shutdown)
# runtime server default log level is log
# offline engine works in scripts, so we set it to error
if 'log_level' not in kwargs:
kwargs['log_level'] = 'error'
server_args = ServerArgs(*args, **kwargs) server_args = ServerArgs(*args, **kwargs)
launch_engine(server_args=server_args) launch_engine(server_args=server_args)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment