From 93590ca43626a6fedf7bcfb600a23e9ec8e2fd9e Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Fri, 9 Mar 2018 16:59:17 +0100 Subject: [PATCH] Adding debug output --- lib/webhooks/lock_handler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/webhooks/lock_handler.py b/lib/webhooks/lock_handler.py index 3a7e8bc..2be98b6 100644 --- a/lib/webhooks/lock_handler.py +++ b/lib/webhooks/lock_handler.py @@ -33,7 +33,7 @@ from .obj import BaseObject from .handler import BaseHandlerError, BaseHandler -__version__ = '0.2.1' +__version__ = '0.2.2' log = logging.getLogger(__name__) @@ -882,9 +882,11 @@ class LockHandler(BaseHandler): os.write(fd, out) if stay_opened: + log.debug("Seeking and syncing {!r} ...".format(lockfile)) os.lseek(fd, 0, 0) os.fsync(fd) else: + log.debug("Closing {!r} ...".format(lockfile)) os.close(fd) fd = None -- 2.39.5