Changeset - d5f3c416fe84
[Not reviewed]
default
0 1 0
Dennis Fink - 11 years ago 2014-01-24 00:16:12
dennis.fink@c3l.lu
log when server is set to offline or unknown
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
ennstatus/status/functions.py
Show inline comments
 
@@ -5,6 +5,7 @@ import json
 
from collections import defaultdict
 
from datetime import datetime
 

	
 
from flask import current_app
 

	
 
def _check_server(data):
 

	
 
@@ -20,6 +21,8 @@ def _check_server(data):
 
        status = None
 

	
 
    if status is not None:
 
        current_app.logger.error("%s is set to %s" % (data['server_name'],
 
                                 status))
 
        for key in ('server_status', 'tor_status'):
 
            data[key] = status
 

	
0 comments (0 inline, 0 general)