Skip to content

Conversation

@JamesAnstey
Copy link
Contributor

Addressing #120, adding logging to dreq_query.py and command-line functions that depend on it, using same approach as elsewhere in the software (data_request.py, dreq_content.py, etc).

Comment on lines +52 to +55
config = dreqcfg.load_config()
change_log_file(logfile=config['log_file'])
change_log_level(level=config['log_level'])
logger = get_logger()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JamesAnstey Applying change_log_file and change_log_level to have the config values take effect is only used in export_dreq_lists_json.py and not in dreq_query? I also did not set this up for dreq_content.py. Would it be possible to have this run in utils/logger.py as default (@rigoudyg), so it is active whenever one uses logger=get_logger()? Else we would have to run this code in each function that uses the logger or place it at the top of each script I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants