running as cronjob
rbro opened this issue · 2 comments
Thanks for a great tool. I had 2 questions related to running db-sync as a cronjob via cli:
-
Is there a way to suppress the output to certain log levels, so that only warnings or errors are printed?
-
I noticed that when an error occurs, the exit code is still 0. Is it possible to get a non-zero exit code when there is an error?
Thanks! I'll look at fixing the error code and also add some -v levels to the options.
Cheers
Joe Green
On 13 Mar 2016, at 22:14, rbro notifications@github.com wrote:
Thanks for a great tool. I had 2 questions related to running db-sync as a cronjob via cli:
Is there a way to suppress the output to certain log levels, so that only warnings or errors are printed?
I noticed that when an error occurs, the exit code is still 0. Is it possible to get a non-zero exit code when there is an error?
—
Reply to this email directly or view it on GitHub.
I've added quite options and fixed the error code to return non zero on failure