mirror of https://github.com/MISP/misp-dashboard
update: changed some log levels
parent
1386e58cf8
commit
b59827591d
|
@ -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__)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue