-
Notifications
You must be signed in to change notification settings - Fork 65
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
Error: Attempt to write logs with no transports #427
Comments
From @dinvlad on October 18, 2018 16:52 Same issue here! It would be nice to be able either truncate log messages, or better still, automatically split them into multiple entries. As it stands right now, we miss critical messages completely. We can limit that manually I think, but that's not as convenient. |
Thank you for letting us know about this and for suggesting solutions. It is really valuable feedback. I'll keep this thread updated with updates on how we address this. |
From @kyle-mccarthy on January 26, 2019 3:59 I am having this issue after winston emits an error event. The specific error is a "TCP Read failed" and may be related to googleapis/google-cloud-node#2438 |
The issue is that it is the size of the log entry itself and not just the message that cannot be over 110K. This makes it difficult to split the log entry into multiple multiple entries if it is the labels and not just the log message that makes the log entry too large. Truncating messages and labels would be an easier approach. Another approach would be to truncate labels but split the message into multiple entries (with each entry having duplicate labels). I'm going to investigate whether these approaches are feasible. |
From @dinvlad on March 11, 2019 0:3 I’d say that splitting messages into multiple lines would be the first and easier way to solve the problem (I’d even guess this covers the majority of setups). |
I've moved this issue to the nodejs-logging repo since this issue should be handled by the |
From @dorshay6 on October 11, 2018 13:31
When sending a large log (body of the requestor sql query) I get the following error and there is no way to limit log size from Winston.
Environment details
@google-cloud/logging-winston
version: 0.10.2Steps to reproduce
Copied from original issue: googleapis/nodejs-logging-winston#190
The text was updated successfully, but these errors were encountered: