Skip to content

Commit

Permalink
Merge pull request #18 from jpopelka/logging
Browse files Browse the repository at this point in the history
Remove wrong condition
  • Loading branch information
jpopelka authored Dec 14, 2023
2 parents c412bf3 + c983508 commit f1aa0c6
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions rpmdeplint/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,18 +249,15 @@ def add_subparser(
cmd_list_deps,
)
args = parser.parse_args(args)
if __name__ == "__main__":
# Only configure logging if running as an application
# skip if running as a library
logging.getLogger().setLevel(logging.DEBUG)
log_to_stream(
sys.stderr,
level=logging.DEBUG
if args.debug
else logging.ERROR
if args.quiet
else logging.WARNING,
)
logging.getLogger().setLevel(logging.DEBUG)
log_to_stream(
sys.stderr,
level=logging.DEBUG
if args.debug
else logging.ERROR
if args.quiet
else logging.WARNING,
)

validate_common_dependency_analyzer_args(parser, args)

Expand Down

0 comments on commit f1aa0c6

Please sign in to comment.