From f18186670b2f815ce32f0509cbfcdbedd1bde42b Mon Sep 17 00:00:00 2001 From: Fabrice Le Goff <fabrice.le.goff@cern.ch> Date: Fri, 17 Aug 2018 17:11:27 +0200 Subject: [PATCH] missing errno import --- Script/CopyThread.py | 2 +- Script/ManagerThread.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Script/CopyThread.py b/Script/CopyThread.py index 9c4e91d..27cce61 100644 --- a/Script/CopyThread.py +++ b/Script/CopyThread.py @@ -516,7 +516,7 @@ class CopyThread(threading.Thread): self.logger.debug('DdmMonitoringQueue is full: discarding request for %s', filename) if (time() - self.ddmQueueFullSince) > 300: - self.logger.critical('DdmMonitoringQueue is full for more than 300 seconds: clearing queue\n' + self.logger.critical('DdmMonitoringQueue is full for more than 300 seconds: clearing queue. ' 'Check DdmMonitoring logs and check connection to remote server (with ddm.test.py)') with self.DdmMonitoringQueue.mutex: self.DdmMonitoringQueue.queue.clear() diff --git a/Script/ManagerThread.py b/Script/ManagerThread.py index d79af82..96a2953 100644 --- a/Script/ManagerThread.py +++ b/Script/ManagerThread.py @@ -13,6 +13,7 @@ import datetime import pprint import math import Constants +import errno from utils import set_log_level,formatter,thread_id_string from itertools import chain -- GitLab