Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Commit

Permalink
Remove logging basic config require caller to setup logging
Browse files Browse the repository at this point in the history
Resolve issue #47.
  • Loading branch information
clach04 committed Dec 3, 2018
1 parent 99885a0 commit 611585a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pytuya/__init__.py
Expand Up @@ -32,7 +32,7 @@
__author__ = 'clach04'

log = logging.getLogger(__name__)
logging.basicConfig() # TODO include function name/line numbers in log
#logging.basicConfig() # TODO include function name/line numbers in log
#log.setLevel(level=logging.DEBUG) # Debug hack!

log.info('Python %s on %s', sys.version, sys.platform)
Expand Down
1 change: 1 addition & 0 deletions tests.py
Expand Up @@ -14,6 +14,7 @@

# Enable info logging to see version information
log = logging.getLogger('pytuya')
logging.basicConfig() # TODO include function name/line numbers in log
log.setLevel(level=logging.INFO)
#log.setLevel(level=logging.DEBUG) # Debug hack!

Expand Down

0 comments on commit 611585a

Please sign in to comment.