mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 03:31:50 +02:00
fix(cli): server log level info and error
This commit is contained in:
@ -218,15 +218,11 @@ def main():
|
|||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
bec_logger.level = bec_logger.LOGLEVEL.INFO
|
||||||
if args.hide:
|
if args.hide:
|
||||||
# if we start hidden, it means we are under control of the client
|
|
||||||
# -> set the log level to critical to not see all the messages
|
|
||||||
# pylint: disable=protected-access
|
# pylint: disable=protected-access
|
||||||
# bec_logger._stderr_log_level = bec_logger.LOGLEVEL.CRITICAL
|
bec_logger._stderr_log_level = bec_logger.LOGLEVEL.ERROR
|
||||||
bec_logger.level = bec_logger.LOGLEVEL.CRITICAL
|
bec_logger._update_sinks()
|
||||||
else:
|
|
||||||
# verbose log
|
|
||||||
bec_logger.level = bec_logger.LOGLEVEL.DEBUG
|
|
||||||
|
|
||||||
if args.gui_class == "BECDockArea":
|
if args.gui_class == "BECDockArea":
|
||||||
gui_class = BECDockArea
|
gui_class = BECDockArea
|
||||||
|
Reference in New Issue
Block a user