Skip to content

Adds log file test fix and extends blacklist to allows for single files #79

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 27, 2021
Merged

Conversation

Cyb3r-Jak3
Copy link
Contributor

@Cyb3r-Jak3 Cyb3r-Jak3 commented Mar 27, 2021

  • Fixes log file test
  • Extends blacklist to allow for a single file

Much cleaner of #75

Copy link
Owner

@svenkreiss svenkreiss left a comment

Choose a reason for hiding this comment

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

Thanks! Much easier to look over.
I just have one request and then this is good to be merged.

args = parse_yaml(args.config, args)
LOGGER.debug(args)
args, extra_args = parse_yaml(args.config, args)
LOGGER.debug(args, extra_args)
Copy link
Owner

Choose a reason for hiding this comment

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

Don't you need a format string as the first argument?
At this point, logging is also not configured yet. Maybe remove.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed the logging here. Don't know what you refer to with format string and the first argument in the path to the config file.

@@ -90,8 +93,8 @@ def main():
args, extra_args = parser.parse_known_args()

if args.config is not None:
args = parse_yaml(args.config, args)
LOGGER.debug(args)
args, extra_args = parse_yaml(args.config, args)
Copy link
Owner

Choose a reason for hiding this comment

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

I didn't realize this before, but overwriting all command line arguments is really not great. A config file should serve as a default that can be overridden by command line args. A todo item for later.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The issue with this is that most command-line arguments have a default so we would need to have a list of what the default arguments are to compare to what was passed.

@svenkreiss
Copy link
Owner

Thanks!

@svenkreiss svenkreiss merged commit e6ed086 into svenkreiss:master Mar 27, 2021
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.

2 participants