fix: [Credential] fix timeout message

pull/519/head
Terrtia 2020-05-20 17:16:02 +02:00
parent 4601003509
commit f917357615
No known key found for this signature in database
GPG Key ID: 1E1B1F50D84613D0
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ from pubsublogger import publisher
sys.path.append(os.path.join(os.environ['AIL_BIN'], 'lib'))
import ConfigLoader
import statistics
import Statistics
## LOAD CONFIG ##
config_loader = ConfigLoader.ConfigLoader()
@ -56,7 +56,7 @@ def regex_findall(module_name, redis_key, regex, item_content, max_time=30, r_se
proc.join(max_time)
if proc.is_alive():
proc.terminate()
statistics.incr_module_timeout_statistic(module_name)
Statistics.incr_module_timeout_statistic(module_name)
err_mess = "{}: processing timeout: {}".format(module_name, item_id)
print(err_mess)
publisher.info(err_mess)