Code Monkey home page Code Monkey logo

Comments (5)

Zygo avatar Zygo commented on June 13, 2024

grep works... ;)

...but filtering that originates within the bees process would be better (it wouldn't have to run the expression that generates the log message).

from bees.

kakra avatar kakra commented on June 13, 2024

When I implemented log levels passing to systemd, I also thought of filtering. But at that point, it made not quite sense because some logs without the others were sometimes out of context. Has this been fixed since? I know, you (@Zygo) reworked a lot of the loggings after my contribution so I guess it should be fine now.

from bees.

kakra avatar kakra commented on June 13, 2024

BTW @KristupasSavickas Since beesd passes log levels to the systemd journal, you can use journald filtering on it:

journalctl -p err -u [email protected]

from bees.

Zygo avatar Zygo commented on June 13, 2024

Logs at level 7 (DEBUG) are mostly "bees started iterating over the filesystem" and "bees finished iterating over the filesystem". Logs at level 6 (INFO) are individual dedup and copy operations. Levels 3-5 (ERR..NOTICE) are more significant problems like IO errors, exception traces, etc. Nothing in bees uses log levels 0..2.

PERFORMANCE and WORKAROUND warnings seem to be at the wrong level. They should probably be NOTICE (level 5) to distinguish them from routine dedup messages (requiring less attention) and other incidents like IO errors (requiring more attention).

I think any insufficient-context log messages should now be considered bugs: either add context to the individual message, or change the message log level to match the other messages that give context.

There might be a use for a lower-level log message level (i.e. move everything up so DEBUG is available for very verbose logging); on the other hand, such information would only be useful for people debugging the code, and anyone who is doing that can just modify the source to include the required extra information and revert the change when done.

from bees.

Ratio2 avatar Ratio2 commented on June 13, 2024

BTW @KristupasSavickas Since beesd passes log levels to the systemd journal, you can use journald filtering on it:

journalctl -p err -u [email protected]

To reduce unnecessary system log entries:

sudo systemctl edit [email protected]
[Service]
LogLevelMax=notice

from bees.

Related Issues (20)

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.