Skip to content

Commit

Permalink
Merge pull request #83 from kormat/util_logging
Browse files Browse the repository at this point in the history
Reinstate needed logging import, remove 2 unused imports
  • Loading branch information
pszal committed Apr 27, 2015
2 parents ce7458f + 4073a5b commit 11e8960
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@
"""

import os
import signal
import logging
import time
import traceback

from lib.defines import TOPOLOGY_PATH
from external.stacktracer import trace_start
Expand Down Expand Up @@ -163,6 +162,7 @@ def trace():
os.environ['SUPERVISOR_PROCESS_NAME'])
trace_start(path)


def timed(limit):
"""
Decorator to measure to execution time of a function, and log a warning if
Expand All @@ -186,6 +186,7 @@ def wrapper(*args, timed_desc=None, **kwargs):
return wrapper
return wrap


def sleep_interval(start, interval, desc):
"""
Sleep until the `interval` seconds have elapsed since `start`.
Expand Down

0 comments on commit 11e8960

Please sign in to comment.