mirror of
https://github.com/nicolargo/glances.git
synced 2026-03-14 03:50:10 -04:00
Disable warning message but in debug mode
This commit is contained in:
@@ -244,6 +244,9 @@ Examples of use:
|
||||
if args.debug:
|
||||
from logging import DEBUG
|
||||
logger.setLevel(DEBUG)
|
||||
else:
|
||||
from warnings import simplefilter
|
||||
simplefilter("ignore")
|
||||
|
||||
# Plugins disable/enable
|
||||
if args.disable_plugin is not None:
|
||||
|
||||
Reference in New Issue
Block a user