Skip to content

Commit

Permalink
Fix typo, consistenly use option.verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
Baharis committed Mar 4, 2025
1 parent d3a67fe commit 2df07b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/instamatic/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def main():
'-v',
'--verbose',
action='count',
dest='verbosity',
dest='verbose',
help='Write debug messages of instamatic (-v) and other imported packages (-vv) to the log',
default=0,
)
Expand Down Expand Up @@ -183,7 +183,7 @@ def log_filter_function(r: logging.LogRecord) -> bool:
log_format = f'%(asctime)s | %({log_detail})s:%(lineno)s | %(levelname)s | %(message)s'
log_handler = logging.FileHandler(logfile)
log_handler.setFormatter(logging.Formatter(log_format))
log_handler.addFilter(log_filter_factory(verbosity=options.verbosity))
log_handler.addFilter(log_filter_factory(verbosity=options.verbose))
log_main.addHandler(log_handler)

logging.captureWarnings(True)
Expand Down

0 comments on commit 2df07b5

Please sign in to comment.