Comments (5)
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.
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.
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.
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.
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)
- GRUB: Extent not found after running bees HOT 4
- a segfault of bees HOT 2
- limit the dedup min size 64K for less fragment? HOT 2
- Bees crashes after 10 minutes of running HOT 1
- munmap when not actively scanning HOT 2
- Help with using Bees.in setup script HOT 8
- build failure with GCC 13 HOT 2
- How exactly is the compression method set and how might one go about changing it? HOT 1
- regression on linux 6.3.1: 'vmalloc error' during crawl HOT 16
- Cannot start beesd service on Archlinux HOT 5
- corrupted double-linked list HOT 17
- bees causes memory fragmentation and low cached memory HOT 23
- Bees fills the journal with 'LOGICAL_INO returned 0 refs' messages HOT 1
- Bees on Synology NAS HOT 9
- Multiple iSCSI fileIO Block Devices on One Btrfs Disk with bees HOT 21
- System service enable problem HOT 6
- Enhancement: exporting live stats HOT 1
- Used size increased by ~400GB while defragmenting HOT 2
- Mount prevent second run HOT 1
- bees seemingly cannot catch up with snapper snapshot creation HOT 16
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 bees.