Skip to content

Commit

Permalink
more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mlasevich committed Dec 14, 2022
1 parent 8b8eaec commit 23966b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/fredlock/fredlock.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,17 @@ def run(self):
log.debug("Lock acquired!")

if conf.delay_after_acquire > 0:
log.debug("Delaying %s seconds before running command",
conf.delay_after_acquire)
log.info("Delaying %s seconds before running command",
conf.delay_after_acquire)
time.sleep(conf.delay_after_acquire)

log.info("Executing command: %s", " ".join(conf.command))
retcode = execute(*conf.command)
log.info("Finished Executing command.")

if conf.delay_before_release > 0:
log.debug("Delaying %s seconds before releasing lock",
conf.delay_before_release)
log.info("Delaying %s seconds before releasing lock",
conf.delay_before_release)
time.sleep(conf.delay_before_release)
return retcode
finally:
Expand Down

0 comments on commit 23966b9

Please sign in to comment.