Changeset - 3d53c627707a
[Not reviewed]
feature-cli
0 1 0
Dennis Fink - 9 years ago 2015-10-25 22:25:25
dennis.fink@c3l.lu
Disable logging when using the cli tool
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
ennstatus/cli/commands/stats.py
Show inline comments
 
@@ -35,7 +35,7 @@ def count(obj, by_type):
 
    app = create_app()
 

	
 
    with app.app_context():
 
        app.logger.removeHandler(app.logger.handlers[1])
 
        app.logger.disabled = True
 
        servers = split_all_servers_to_types()
 

	
 
    if not by_type:
 
@@ -66,7 +66,7 @@ def countries(obj, by_type):
 
    app = create_app()
 

	
 
    with app.app_context():
 
        app.logger.removeHandler(app.logger.handlers[1])
 
        app.logger.disabled = True
 
        servers = split_all_servers_to_types()
 

	
 
    if not by_type:
0 comments (0 inline, 0 general)