Skip to content

Commit

Permalink
Merge pull request studioimaginaire#20 from jamescun/master
Browse files Browse the repository at this point in the history
Moved Logging configuration from module header to __main__ run
  • Loading branch information
natcl committed Aug 28, 2013
2 parents 3199872 + 263daf2 commit c59622f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion phue.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

import logging
logger = logging.getLogger('phue')
logging.basicConfig(level=logging.INFO)


if platform.system() == 'Windows':
USER_HOME = 'USERPROFILE'
Expand Down Expand Up @@ -819,6 +819,8 @@ def delete_schedule(self, schedule_id):
if __name__ == '__main__':
import argparse

logging.basicConfig(level=logging.INFO)

parser = argparse.ArgumentParser()
parser.add_argument('--host', required=True)
args = parser.parse_args()
Expand Down

0 comments on commit c59622f

Please sign in to comment.