CLI output to stderr?

Thanks for the great tool! I am testing Kopia on Linux. It looks like the CLI outputs info level messages to stderr. Is this intentional? It seems to confuse cron wrappers and cause an email to be sent every time cron runs kopia (vs. when there is something wrong).

There are 3 types of output:

  • log messages which also go to stderr, which can be squelched with --log-level=warning
  • regular stdout output (such as directory listings, etc), cannot be disabled
  • application-level stderr output (such as progress bar), cannot be disabled right now (there’s --no-progress which can disable the progress itself, but will not all messages can be disabled).

Patches to improve this (flags to disable output, etc.) are always welcome.

Do the “Snapshotting …” and “Created snapshot …” messages count as something that can be controlled by the --log-level switch or are they application-level stderr output?

App-level.

Log lines will have timestamp in front of them and --log-level can control them.