logvac
logvac copied to clipboard
Spamming "Redialing Datadog"
After each message gets published we're setting the connection to nil
here
Because of this, each time another publish comes in, we're creating a new connection and outputting "Redialing Datadog" here
This could probably be optimized a bit, however, I don't think there is anything inherently wrong with it, we probably just don't need that output message.
It's actually setting the connection to nil
only if there was an error writing on the connection, so it will know to redial. I'd say get rid of the log message though.
You're right, I misread that initially. For some reason, I read it err == nil
. I'll have another look and see where it's causing the spam