Skip to content

Commit

Permalink
Configure logging before starting to log
Browse files Browse the repository at this point in the history
  • Loading branch information
roelderickx committed Apr 18, 2021
1 parent 300d30c commit 5e72bd4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ogr2osm.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
import sys
import os
import optparse
import logging as l
import re

from osgeo import ogr
Expand All @@ -55,6 +54,10 @@

from datetime import datetime

# import logging and set logging level to DEBUG
import logging as l
l.basicConfig(level=l.DEBUG, format="%(message)s")

# Determine major Python version is 2 or 3
IS_PYTHON2 = sys.version_info < (3, 0)

Expand Down Expand Up @@ -90,7 +93,6 @@


# Initialize
l.basicConfig(level=l.DEBUG, format="%(message)s")
LINESTRING_POINTS = {}


Expand Down

0 comments on commit 5e72bd4

Please sign in to comment.