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

Logger extensions now also count the warnings #1210

Merged
merged 1 commit into from Feb 22, 2020

Conversation

PissedCapslock
Copy link
Contributor

I cannot believe I messed up that previous PR (#1205), but the extensions of the Logger class did not count the warnings.
Solved this by removing the error counting code from the child classes, and called the super method instead.
This ensures that both the error count and the warning count increases.

I cannot believe I messed up that previous PR (TypeStrong#1205), but the extensions of the `Logger` class did not count the warnings.
Solved this by removing the error counting code from the child classes, and called the super method instead.
This ensures that both the error count and the warning count increases.
@Gerrit0
Copy link
Collaborator

Gerrit0 commented Feb 22, 2020

My bad as well - I assumed child classes were well behaved, which is not an assumption that can be made with TypeDoc yet unfortunately!

Thanks for the fix! Should be able to do a release this weekend

@Gerrit0 Gerrit0 merged commit c4ce9a5 into TypeStrong:master Feb 22, 2020
@PissedCapslock PissedCapslock deleted the patch-3 branch February 22, 2020 21:37
@PissedCapslock
Copy link
Contributor Author

That was my assumption as well. Great was my surprise after upgrading that the logger said zero warnings while the log indicated otherwise.
Thanks for merging (again).

@Gerrit0
Copy link
Collaborator

Gerrit0 commented Feb 28, 2020

Released in 0.16.11 :)

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.

None yet

2 participants