]> git.hungrycats.org Git - bees/commitdiff
main: quiet some pre-option-parsing debug messages
authorZygo Blaxell <bees@furryterror.org>
Tue, 5 Aug 2025 04:37:53 +0000 (00:37 -0400)
committerZygo Blaxell <bees@furryterror.org>
Sat, 14 Feb 2026 05:23:07 +0000 (00:23 -0500)
Before the argv options are parsed, bees runs at log level DEBUG.
Some messages are emitted before the log level can be set.

Replace these with BEESTRACE--we only need them if there's an exception.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
src/bees.cc

index 45b5e65c4e894a505deee96bbc862eed7c5e4505..d1152cebe7a73b9ac26febbc970f8016dbf64258 100644 (file)
@@ -694,7 +694,7 @@ static
 void
 block_signals()
 {
-       BEESLOGDEBUG("Masking signals");
+       BEESTRACE("Masking signals");
 
        DIE_IF_NON_ZERO(sigemptyset(&new_sigset));
        DIE_IF_NON_ZERO(sigaddset(&new_sigset, SIGTERM));
@@ -772,7 +772,7 @@ bees_main(int argc, char *argv[])
 
        // Create a context so we can apply configuration to it
        shared_ptr<BeesContext> bc = make_shared<BeesContext>();
-       BEESLOGDEBUG("context constructed");
+       BEESTRACE("context constructed");
 
        // Defaults
        bool use_relative_paths = false;