Skip to content

Commit a56ccbb

Browse files
authored
Merge pull request #39 from jluethi/master
Removing hard-coded logging configuration
2 parents 4bac7a0 + b1b99b5 commit a56ccbb

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

jgo/jgo.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@
2626

2727
_classpath_separator = ';' if os.name == 'nt' else ':'
2828

29-
LOG_FORMAT = '%(levelname)s %(asctime)s: %(message)s'
30-
logging.basicConfig(
31-
level = logging.INFO,
32-
# datefmt = '%Y-%m-%d - %H:%M:%S',
33-
format = LOG_FORMAT)
3429
_logger = logging.getLogger(os.getenv('JRUN_LOGGER_NAME', 'jgo'))
3530

3631
def classpath_separator():
@@ -250,6 +245,12 @@ def jgo_parser():
250245
return parser
251246

252247
def jgo_main(argv=sys.argv[1:], stdout=None, stderr=None):
248+
249+
LOG_FORMAT = '%(levelname)s %(asctime)s: %(message)s'
250+
logging.basicConfig(
251+
level = logging.INFO,
252+
# datefmt = '%Y-%m-%d - %H:%M:%S',
253+
format = LOG_FORMAT)
253254

254255
parser = jgo_parser()
255256

0 commit comments

Comments
 (0)