Skip to content

Commit

Permalink
Add debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
negiDharmendra committed Dec 10, 2019
1 parent d68b3af commit 0790c7b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions getgauge/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ def capture_to_file():
screenshot_file = os.path.join(
os.getenv("screenshots_dir"), screenshot_file)
if(not os.path.exists(screenshot_file)):
logger.info("screenshots_dir : {0} \tscreenshot_file : {1}".format(os.getenv("screenshots_dir"), screenshot_file))
raise Exception(
"Screenshot file {0} does not exists.".format(screenshot_file))
return os.path.basename(screenshot_file)
Expand Down

0 comments on commit 0790c7b

Please sign in to comment.