Skip to content
This repository has been archived by the owner on Jul 30, 2022. It is now read-only.

Commit

Permalink
Put debug statements under __debug__ conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
mhucka committed Sep 24, 2020
1 parent 2fa7e1d commit 24aa6f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lostit/__main__.py
Expand Up @@ -17,7 +17,7 @@
import os
import os.path as path
import plac
from sidetrack import set_debug, log
if __debug__: from sidetrack import set_debug, log
import sys
import time
from threading import Thread
Expand Down Expand Up @@ -84,7 +84,7 @@ def main(user = 'U', pswd = 'P',

# Configure debug logging if it's turned on.
if debug:
set_debug(True)
if __debug__: set_debug(True)

# Switch between different ways of getting information from/to the user.
if use_gui:
Expand Down

0 comments on commit 24aa6f8

Please sign in to comment.