Code Monkey home page Code Monkey logo

Comments (3)

dpc avatar dpc commented on June 26, 2024 5

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.

Mem2019 avatar Mem2019 commented on June 26, 2024 1

For anyone who searches the problem, TerminalLoggerBuilder::new().overflow_strategy(OverflowStrategy::Block) solves it.

from async.

rushmorem avatar rushmorem commented on June 26, 2024

I see. Thanks for the explanation.

from async.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.