update: changed some log levels

pull/23/head
Sami Mokaddem 2017-12-05 09:02:49 +01:00
parent 1386e58cf8
commit b59827591d
2 changed files with 3 additions and 3 deletions

View File

@ -20,8 +20,8 @@ configfile = os.path.join(os.environ['DASH_CONFIG'], 'config.cfg')
cfg = configparser.ConfigParser()
cfg.read(configfile)
logging.basicConfig(filename='logs/logs.log', filemode='w', level=logging.INFO)
logger = logging.getLogger(__name__)
logger = logging.getLogger('werkzeug')
logger.setLevel(logging.ERROR)
app = Flask(__name__)

View File

@ -241,7 +241,7 @@ def main(sleeptime):
while True:
content = serv_list.rpop(LISTNAME)
if content is None:
logger.info('Processed {} message(s) since last sleep.'.format(numMsg))
logger.debug('Processed {} message(s) since last sleep.'.format(numMsg))
numMsg = 0
time.sleep(sleeptime)
continue