blueboat
blueboat copied to clipboard
Log delivery issue
After migrating to tracing log delivery has some strange issues:
If an instance gets a background task channel lock in a few seconds after startup, the channel lock acquired log is sent to both syslog_kafka and the console.
But if the instance gets the lock after expiration (like 20 seconds later), the log is only sent to syslog_kafka.
The log looks like:
{"host":"devbox-ap","pid":538824,"tid":"2","ts":1639311912.4820883,"name":"event src/task.rs:297","target":"blueboat::task","level":"WARN","module_path":"blueboat::task","file":"src/task.rs","line":297,"fields":{"channel":"ch01","identity":"2c3963dd-8f2d-4204-907f-d8455acfb1a1","message":"channel lock acquired"},"span_id":""}