make default logger configuration the same as call to logger.configure() (#222)
This commit is contained in:
@@ -397,11 +397,7 @@ def configure(dir=None, format_strs=None):
|
|||||||
log('Logging to %s'%dir)
|
log('Logging to %s'%dir)
|
||||||
|
|
||||||
def _configure_default_logger():
|
def _configure_default_logger():
|
||||||
format_strs = None
|
configure()
|
||||||
# keep the old default of only writing to stdout
|
|
||||||
if 'OPENAI_LOG_FORMAT' not in os.environ:
|
|
||||||
format_strs = ['stdout']
|
|
||||||
configure(format_strs=format_strs)
|
|
||||||
Logger.DEFAULT = Logger.CURRENT
|
Logger.DEFAULT = Logger.CURRENT
|
||||||
|
|
||||||
def reset():
|
def reset():
|
||||||
|
Reference in New Issue
Block a user