Skip to content

Commit

Permalink
fix: Remove funcname from logging
Browse files Browse the repository at this point in the history
as it mostly duplicates "module"
  • Loading branch information
pmhahn committed Sep 21, 2023
1 parent 83c7e6d commit 501a384
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion logging.ini
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ keys=brief,precise
format=%(asctime)s %(message)s

[formatter_precise]
format=%(asctime)s %(levelname)s [%(name)s:%(module)s:%(funcName)s]: %(message)s
format=%(asctime)s %(levelname)s [%(name)s:%(funcName)s]: %(message)s
2 changes: 1 addition & 1 deletion logging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ formatters:
brief:
format: "%(asctime)s %(message)s"
precise:
format: "%(asctime)s %(levelname)s [%(name)s:%(module)s:%(funcName)s]: %(message)s"
format: "%(asctime)s %(levelname)s [%(name)s:%(funcName)s]: %(message)s"
handlers:
console:
class: logging.StreamHandler
Expand Down
2 changes: 1 addition & 1 deletion src/vncautomate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def init_logger(debug_level="info"):
sys.exit("Unknown log level %r" % (debug_level,))

logging.basicConfig(
format="%(asctime)s %(levelname)s [%(name)s:%(module)s:%(funcName)s]: %(message)s",
format="%(asctime)s %(levelname)s [%(name)s:%(funcName)s]: %(message)s",
level=level,
)

Expand Down

0 comments on commit 501a384

Please sign in to comment.