Skip to content

Commit

Permalink
fix timing issue on debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
sulincix committed Jul 9, 2024
1 parent ad75b57 commit 6673dcd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,9 @@ def get(variable, default=None, section="pardus"):
return False
return str(ret)

ltime=time.time()
if get("debug", False, "pardus"):
def debug(msg):
log("[DEBUG:{}] => {}\n".format((int(1000*(time.time()-ltime))), msg), type="debug")
log("[DEBUG:{}] => {}\n".format(time.time(), msg), type="debug")
ltime=time.time()
else:
def debug(msg):
Expand Down

0 comments on commit 6673dcd

Please sign in to comment.