]> git.hungrycats.org Git - bees/commit
trace: deprecate BEESLOGTRACE, align trace logs with exception notices
authorZygo Blaxell <bees@furryterror.org>
Thu, 13 Feb 2025 03:01:31 +0000 (22:01 -0500)
committerZygo Blaxell <bees@furryterror.org>
Fri, 14 Feb 2025 04:59:42 +0000 (23:59 -0500)
commit51b3bcdbe4e5f56ab281009d0abd11bd32c418dc
tree4b0636f7e2f0a3c753487cdda9722e36326875c0
parentae58401d53698714dcede2fc2c3879f3a11f5ade
trace: deprecate BEESLOGTRACE, align trace logs with exception notices

Exceptions were logged at level NOTICE while the stack traces were logged
at level DEBUG.  That produced useless noise in the output with `-v5`
or `-v6`, where there were exception headings logged, but no details.

Fix that by placing the exceptions and traces at level DEBUG, but prefix
them with `TRACE:` for easy grepping.

Most of the events associated with BEESLOGTRACE either never happen,
or they are harmless (e.g. trying to open deleted files or subvols).
Reassign them to ordinary BEESLOGDEBUG, with one exception for
unrecognized Extent flags that should be debugged if any appear.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
src/bees-context.cc
src/bees-roots.cc
src/bees-trace.cc
src/bees-types.cc
src/bees.cc
src/bees.h