Comments (3)
You are logging faster than your backend can write the logs to the output. The buffer (channel) got full, and slog had to drop couple of logging messages (15).
You have to decide what to do about it. You can eg. increase the size of the buffer: https://docs.rs/slog-async/2.1.0/slog_async/struct.AsyncBuilder.html#method.chan_size which would help if these are just temporary bursts of logs.
You could ignore the problem, and maybe even filter out the messages about it.
Or you could not use async logging, make your app wait every time a message is logged, until it actually hits a disk/network or something.
from async.
For anyone who searches the problem, TerminalLoggerBuilder::new().overflow_strategy(OverflowStrategy::Block)
solves it.
from async.
I see. Thanks for the explanation.
from async.
Related Issues (11)
- Dropping AsyncCore in the logger thread will cause panic HOT 5
- A future-based drain for the asynchronous future HOT 7
- Release new minor version HOT 1
- Replace crossbeam with std::sync::mpsc HOT 5
- slog-rsync doesn't compile with rust-nightly-2017-07-08 or rust-nightly-2017-07-09 HOT 4
- Performance regression between 2.3.0 and 2.5.0 - crossbeam-channel? HOT 9
- crates-io release? HOT 4
- slog-async: even with increased chan_size, "logger dropped messages due to channel overflow" HOT 2
- missing tag for v2.5.0 HOT 1
- panic with message '`ToSendSerializer` can't fail: Other'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from async.