From: Frank Brehm Date: Fri, 9 Mar 2018 15:59:17 +0000 (+0100) Subject: Adding debug output X-Git-Tag: 0.8.4^2~6 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=93590ca43626a6fedf7bcfb600a23e9ec8e2fd9e;p=pixelpark%2Fpuppetmaster-webhooks.git Adding debug output --- 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