Open teeuwen opened 3 years ago
Instead of piping to /dev/null
, you could use chronic to only output on failure: https://manpages.ubuntu.com/manpages/trusty/man1/chronic.1.html
This is also a good idea. Nevertheless I opened #17 which should output INFO messages like Checking available updates...
to stdout.
Hmm, after thinking about it. I'm not sure if outputting INFO to stdout makes sense. Often all diagnostic output is written to stderr, including info messages. Maybe a info level variable would make here more sense?
@jirutka what do you think about it?
I noticed all messages, regardless of their importance are redirected to stderr.
This bother me because I've set up a cronjob for apk-autoupdate to run every day like so:
I would expect "Checking available updates..." to be redirected to /dev/null accordingly. Right now, I get an email every day telling me that apk-autoupdate is checking for available updates.