ionorg / ion-sfu

Pure Go WebRTC SFU
MIT License
980 stars 238 forks source link

feat: enable new log levels #675

Closed ojroques closed 1 year ago

ojroques commented 1 year ago

Description

Currently there are only three log levels available: INFO (-v 0), DEBUG (-v 1) and TRACE (-v 2). This PR adds all other levels, from DISABLED (-v 6) up to TRACE (-v 2). It does not break existing SFU configs.

codecov[bot] commented 1 year ago

Codecov Report

Base: 35.68% // Head: 35.07% // Decreases project coverage by -0.60% :warning:

Coverage data is based on head (1107419) compared to base (daf197a). Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #675 +/- ## ========================================== - Coverage 35.68% 35.07% -0.61% ========================================== Files 24 24 Lines 2637 2637 ========================================== - Hits 941 925 -16 - Misses 1554 1570 +16 Partials 142 142 ``` | [Impacted Files](https://codecov.io/gh/pion/ion-sfu/pull/675?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pion) | Coverage Δ | | |---|---|---| | [pkg/logger/zerologr.go](https://codecov.io/gh/pion/ion-sfu/pull/675?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pion#diff-cGtnL2xvZ2dlci96ZXJvbG9nci5nbw==) | `35.13% <0.00%> (ø)` | | | [pkg/sfu/subscriber.go](https://codecov.io/gh/pion/ion-sfu/pull/675?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pion#diff-cGtnL3NmdS9zdWJzY3JpYmVyLmdv) | `48.71% <0.00%> (-7.70%)` | :arrow_down: | | [pkg/sfu/router.go](https://codecov.io/gh/pion/ion-sfu/pull/675?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pion#diff-cGtnL3NmdS9yb3V0ZXIuZ28=) | `41.01% <0.00%> (-2.25%)` | :arrow_down: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pion). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pion)

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