CyrilBrulebois,
@CyrilBrulebois@mamot.fr avatar

Logging levels by #borgmatic: [-v {-1,0,1,2}]

Had to dig into https://sources.debian.org/src/borgmatic/1.7.7-1/borgmatic/verbosity.py/ to find out what that means… with logging.ANSWER being a typo/thinko for logging.WARNING I suppose?

TL;DR: borgmatic -v-1 create to have only ERROR-level logs…

borgmatic,
@borgmatic@fosstodon.org avatar

@CyrilBrulebois Log levels are documented here: https://torsion.org/borgmatic/docs/how-to/inspect-your-backups/

"ANSWER" is a custom log level (corresponding to --verbosity 0) that shows: 1. Warnings, 2. Errors, and 3. Direct responses to user queries. It's distinct from "WARNING" (internally) because of those direct responses.

For instance, if you run "borgmatic list", you'll get back an answer in the form of an archive/repository listing, but only at --verbosity 0 or above.

CyrilBrulebois,
@CyrilBrulebois@mamot.fr avatar

@borgmatic I think you're answering about VERBOSITY_ANSWER, while I'm talking about the value you're affecting to it, which is logging.ANSWER; since you're importing “logging” I'm assuming this is the standard logging module, which doesn't feature this ANSWER to the best of my knowledge.

CyrilBrulebois,
@CyrilBrulebois@mamot.fr avatar

@borgmatic Regarding documentation, I'm expecting tools to have it included in their output, or in their manpage. Failing that, I tend to dive into the source code because otherwise you tend to have version skews between what you're running and what the website documents.

CyrilBrulebois,
@CyrilBrulebois@mamot.fr avatar

Brought to you by another {bullseye--;bookworm++;} episode.

CyrilBrulebois,
@CyrilBrulebois@mamot.fr avatar

Still hilarious to have to side-step 's version check to be able to solve the “Debian 11 vs. Debian 12 (hence PHP 7.4 vs. 8.2)” vs. “Nextcloud 25 vs. Nextcloud 26” loop.

Version check that mentions “show warning” right before erroring out with a 500. 🤣

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • everett
  • InstantRegret
  • magazineikmin
  • thenastyranch
  • rosin
  • GTA5RPClips
  • Durango
  • Youngstown
  • slotface
  • khanakhh
  • kavyap
  • ngwrru68w68
  • ethstaker
  • JUstTest
  • osvaldo12
  • tester
  • cubers
  • cisconetworking
  • mdbf
  • tacticalgear
  • modclub
  • Leos
  • anitta
  • normalnudes
  • megavids
  • provamag3
  • lostlight
  • All magazines