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

Fix Logger.error #173

Merged
merged 1 commit into from
Jan 16, 2023
Merged

Fix Logger.error #173

merged 1 commit into from
Jan 16, 2023

Conversation

alexjfisher
Copy link
Contributor

For some reason, there was a self.crit method in logger.rb (calling logger.error), but no self.error.

There was only one instance of Logger.crit in the code, but three instances of Logger.error that would all explode with

NoMethodError: undefined method `error' for PdkSync::Logger:Class

Fixes #172

For some reason, there was a `self.crit` method in `logger.rb` (calling
`logger.error`), but no `self.error`.

There was only one instance of `Logger.crit` in the code, but three
instances of `Logger.error` that would all explode with

```
NoMethodError: undefined method `error' for PdkSync::Logger:Class
```

Fixes puppetlabs#172
@alexjfisher alexjfisher requested a review from a team as a code owner January 12, 2023 16:11
@codecov-commenter
Copy link

codecov-commenter commented Jan 12, 2023

Codecov Report

Base: 45.63% // Head: 45.63% // No change to project coverage 👍

Coverage data is based on head (c4d36bd) compared to base (8b1d2c3).
Patch coverage: 100.00% of modified lines in pull request are covered.

❗ Current head c4d36bd differs from pull request most recent head 25b4d30. Consider uploading reports for the commit 25b4d30 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #173   +/-   ##
=======================================
  Coverage   45.63%   45.63%           
=======================================
  Files          10       10           
  Lines        1227     1227           
=======================================
  Hits          560      560           
  Misses        667      667           
Impacted Files Coverage Δ
lib/pdksync/logger.rb 83.33% <100.00%> (ø)
lib/pdksync/utils.rb 44.15% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@chelnak chelnak merged commit f07246d into puppetlabs:main Jan 16, 2023
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.

NoMethodError: undefined method `error' for PdkSync::Logger:Class
4 participants