Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Remove stream entry from log_config.yaml #315

Merged
merged 1 commit into from
Jan 23, 2024
Merged

Conversation

CM000n
Copy link
Collaborator

@CM000n CM000n commented Jan 23, 2024

Remove stream settings from logging settings.

In the course of DurgNomis-drol/ha_toyota#218 (reply in thread) I had another look at the log_config.yaml and realised that the stream setting has no effect.

Rather, this currently causes an error when trying to log to a file. After deleting the stream setting, logging to a file works again. E.g with python simple_client_example.py &> test.log

Remove `stream` settings from logging settings.

In the course of DurgNomis-drol/ha_toyota#218 (reply in thread) I had another look at the `log_config.yaml` and realised that the `stream` setting has no effect.

Even if it does not produce a direct error, it is always logged in the stderr regardless of the stream setting.
Copy link

codecov bot commented Jan 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (cea29b0) 70.35% compared to head (863b4ef) 70.35%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #315   +/-   ##
=======================================
  Coverage   70.35%   70.35%           
=======================================
  Files          32       32           
  Lines        1511     1511           
=======================================
  Hits         1063     1063           
  Misses        448      448           
Flag Coverage Δ
unittests 70.35% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@CM000n CM000n changed the title Enhancement: Update log_config.yaml Bug: Remove stream entry from log_config.yaml Jan 23, 2024
Copy link
Collaborator

@GitOldGrumpy GitOldGrumpy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tried this myself and appears to work.

@GitOldGrumpy GitOldGrumpy merged commit 43c8189 into master Jan 23, 2024
25 checks passed
@CM000n CM000n deleted the CM000n-patch-1 branch January 24, 2024 05:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants