Skip to content

Commit

Permalink
let users of the module to determine their logging configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
f0rk committed Mar 4, 2016
1 parent fe4a2eb commit 3441ca7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tzwhere/tzwhere.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ class are instantiated and queried directly, but the module can be run
except ImportError:
WRAP = tuple

LOGGER_FORMAT = '%(asctime)-15s %(filename)s %(funcName)s %(lineno)d %(levelname)s %(message)s'
logging.basicConfig(format=LOGGER_FORMAT, level=logging.DEBUG)
LOGGER = logging.getLogger('pytzwhere')


Expand Down Expand Up @@ -357,6 +355,10 @@ def _feature_collection_polygons(featureCollection):


def main():

LOGGER_FORMAT = '%(asctime)-15s %(filename)s %(funcName)s %(lineno)d %(levelname)s %(message)s'
logging.basicConfig(format=LOGGER_FORMAT, level=logging.DEBUG)

try:
import docopt
except ImportError:
Expand Down

0 comments on commit 3441ca7

Please sign in to comment.