Skip to content

Commit

Permalink
set log level (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
CM000n authored Jan 14, 2024
1 parent f36b119 commit 8a282a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
11 changes: 5 additions & 6 deletions mytoyota/utils/logging/log_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ formatters:
datefmt: "%Y-%m-%d %H:%M:%S"

handlers:
file:
class: "logging.FileHandler"
stream:
class: "logging.StreamHandler"
formatter: "simple"
filename: ".log"
mode: "w"
stream: sys.stdout
filters:
- "logfilter"

Expand All @@ -28,6 +27,6 @@ filters:
- "guid':\\s*'([^']*)"

root:
level: "DEBUG"
level: "ERROR"
handlers:
- "file"
- "stream"
3 changes: 2 additions & 1 deletion simple_client_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
from mytoyota.models.summary import SummaryType

pp = pprint.PrettyPrinter(indent=4)
logger = logging.getLogger(__name__)
_LOGGER = logging.getLogger(__name__)


# Set your username and password in a file on top level called "credentials.json" in the format:
# {
Expand Down

0 comments on commit 8a282a0

Please sign in to comment.