Skip to content

BF: Fix bug where "ERROR" logs showed up as "DEPRECATION"#6836

Merged
TEParsons merged 1 commit intopsychopy:devfrom
TEParsons:dev-bf-logging-labels
Sep 6, 2024
Merged

BF: Fix bug where "ERROR" logs showed up as "DEPRECATION"#6836
TEParsons merged 1 commit intopsychopy:devfrom
TEParsons:dev-bf-logging-labels

Conversation

@TEParsons
Copy link
Copy Markdown
Contributor

Because logging.error (and similar functions) didn't explicitly state a label, the label used was just the first one found which matched the numeric log level. Because both ERROR and DEPRECATION have the same numeric log level, error logs were getting the label DEPRECATION instead. Explicitly stating the label to match the function called fixes this.

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.57%. Comparing base (ae32091) to head (f303999).
Report is 17 commits behind head on dev.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev    #6836   +/-   ##
=======================================
  Coverage   49.57%   49.57%           
=======================================
  Files         332      332           
  Lines       61281    61281           
=======================================
+ Hits        30380    30382    +2     
+ Misses      30901    30899    -2     
Components Coverage Δ
app ∅ <ø> (∅)
boilerplate ∅ <ø> (∅)
library ∅ <ø> (∅)
vm-safe library ∅ <ø> (∅)

@TEParsons TEParsons merged commit fe5cfd3 into psychopy:dev Sep 6, 2024
@TEParsons TEParsons deleted the dev-bf-logging-labels branch September 19, 2024 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant