added logs to stdout
This commit is contained in:
parent
5e5da3d880
commit
fd38f6cef2
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ log_level = env.get('GEOIP2INFLUX_LOG_LEVEL', 'info').upper()
|
|||
g2i_log_path = env.get('GEOIP2INFLUX_LOG_PATH','/config/log/geoip2influx/geoip2influx.log')
|
||||
|
||||
# Logging
|
||||
logging.basicConfig(level=log_level,format='%(asctime)s :: %(levelname)s :: %(message)s',datefmt='%d/%b/%Y %H:%M:%S',filename=g2i_log_path)
|
||||
logging.basicConfig(level=log_level,format='GEOIP2INFLUX %(asctime)s :: %(levelname)s :: %(message)s',datefmt='%d/%b/%Y %H:%M:%S',handlers=[logging.StreamHandler(),logging.FileHandler(g2i_log_path)])
|
||||
|
||||
def regex_tester(log_path, N):
|
||||
time_out = time() + 60
|
||||
|
|
Loading…
Reference in a new issue