Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions bart-registrant
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ def setupLogging(options, cfg):
# open logfile
if options.stdout:
logging.basicConfig(
stream=sys.stdout, format=LOG_FORMAT, level=loglevel, force=True
stream=sys.stdout, format=LOG_FORMAT, level=loglevel,
)
else:
logfile = options.logfile
Expand All @@ -538,7 +538,7 @@ def setupLogging(options, cfg):
cfg, CONFIG_SECTION_LOGGER, CONFIG_LOGFILE, DEFAULT_LOGFILE
)
logging.basicConfig(
filename=logfile, format=LOG_FORMAT, level=loglevel, force=True
filename=logfile, format=LOG_FORMAT, level=loglevel,
)


Expand Down Expand Up @@ -585,9 +585,6 @@ def doMain():
main, parse command line, setup logging, start the actual logic, etc.
"""

# Basic log options
logging.basicConfig(format=LOG_FORMAT, level=logging.ERROR)

# start by parsing the command line to see if we have a specific config file
options = getOptions()

Expand Down