Commits

Jason R. Coombs committed 4e31480

Suppress log messages when at attempted lock fails.

  • Participants
  • Parent commits 26f0de3
  • Tags 1.1.1

Comments (0)

Files changed (1)

File yg/lockfile/__init__.py

 import functools
 import numbers
 import datetime
+import logging
 
 import zc.lockfile
 
 from . import timing
 from .py26compat import total_seconds
 
+# disable the error reporting in zc.lockfile because it will
+#  just spew errors as we repeatedly attempt to acquire an
+#  unavailable lock.
+logging.getLogger('zc.lockfile').setLevel(logging.ERROR+1)
+
+
 class FileLockTimeout(Exception):
     pass