Skip to content

Commit

Permalink
Improve loglevel printing
Browse files Browse the repository at this point in the history
  • Loading branch information
wvanhed committed Jan 2, 2024
1 parent a201ff3 commit ba53a1e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ new: new feature / impr: improvement / fix: bug fix

- new: experimental login via OAuth (optional)
- new: city parameter to create MijnBibliotheek object is now optional
- impr: set some log messages at INFO level
- impr: set some log messages at INFO level, and improve log level printing

## v0.3.0 - 2023-12-27

Expand Down
2 changes: 1 addition & 1 deletion examples/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from mijnbib import MijnBibliotheek

logging.basicConfig(format="%(levelname)s %(message)s")
logging.basicConfig(format="%(levelname)-7s %(message)s")
logging.getLogger().setLevel(logging.DEBUG)
pp = pprint.PrettyPrinter()

Expand Down
2 changes: 1 addition & 1 deletion src/mijnbib/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def main():
args = parser.parse_args()

if args.verbose:
logging.basicConfig(format="%(levelname)s %(message)s")
logging.basicConfig(format="%(levelname)-7s %(message)s")
logging.getLogger().setLevel(logging.DEBUG)

required = ["username", "password"]
Expand Down

0 comments on commit ba53a1e

Please sign in to comment.