-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
use utils.Logger not log #2904
use utils.Logger not log #2904
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
Could you please update your contributing section in the readme. Nothing in this private repo suggested to me that this is a google project. I know signed it as I already PRed and will probably guess I'll come accross a google project again anyway in the future, but if I'd new I wouldn't have done it for such a trivial change. @googlebot I signed it! |
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
Codecov Report
@@ Coverage Diff @@
## master #2904 +/- ##
=======================================
Coverage 85.77% 85.77%
=======================================
Files 133 133
Lines 9180 9180
=======================================
Hits 7874 7874
Misses 958 958
Partials 348 348
Continue to review full report at Codecov.
|
We're not logging to stdout, we're just using the |
Ok, apparently I've jumped to wrong conclusions, thanks for clarifying.. Getting these lines printed to stdout and the presence of
just a few lines above the usage of
Good to know, thanks for the hint. The use-case is indeed high-bandwidth and on linux and almost any other OS@ data transfer between the same application using quic-go. And we don't (recommend to) modify any UDP settings as far as I am aware, so this definitely affects us. Definitely good to know if that pops up in support, unfortunately nothing we can do pro-actively given it requires privileges to change. |
Having looked at your logging implementation this is how I understand it works: You have an internal As you log to the default logger of |
how about just returning error to user and let it decide what to do ? |
Thank you for the discussion. This issue should have been alleviated by #2923 (which is included in the v0.19.3 release). |
I've been doing some quic-unrelated debugging with Syncthing and noticed log output in a format that Syncthing doesn't use (syncthing/syncthing#7146):
Turns out it is quic logging directly to stdout instead of using it's own logger.
Please let me know if the error itself is problematic, then I can enable quic logging locally and see if it comes up consistently.