hyphacoop / api.distributed.press

https://distributed.press
GNU Affero General Public License v3.0
77 stars 8 forks source link

Cronjob shouldn't have output #29

Closed fauno closed 1 year ago

fauno commented 1 year ago

The staging server logs are full of emails sent to root (plus postfix complaining about the hostname). Inspecting /var/mail/root is full of "All done" emails from cron.

Not sure if this is going to be kept for APIv1 but it could just exit 0 and be verbose only on errors, so you don't have as many useless emails, or run it with chronic which ignores output if everything goes well.

fauno commented 1 year ago

I made a mistake filtering emails and I emptied the mailbox, there were 2488 :B

RangerMauve commented 1 year ago

No longer relevant as of v1