Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quiet doesn't work #199

Open
Wonko52 opened this issue Mar 22, 2020 · 2 comments
Open

Quiet doesn't work #199

Wonko52 opened this issue Mar 22, 2020 · 2 comments

Comments

@Wonko52
Copy link

Wonko52 commented Mar 22, 2020

The command line option "-" or "--quiet" doesn't work. It displays the normal output.

# ./carddav2fb run -q
Downloading recent FRITZ!Box phonebook
Downloading vCard(s) from account xxx

Downloaded 489 vCard(s)
Downloaded 489 vCard(s) in total
Dissolving groups (e.g. iCloud)
Dissolved 0 group(s)
Filtering 489 vCard(s)
Filtered 0 vCard(s)
Contact without phone numbers will be skipped
...
@andig
Copy link
Owner

andig commented Mar 23, 2020

Just guessing here: the quiet option is probably Symfony standard. It doesn't have any effect since we're using error_log instead of Symfony output for printing to be able to separate dumped date from progress. Easiest thing would be to remove that option.

@Wonko52
Copy link
Author

Wonko52 commented Mar 23, 2020

I think a common use case is that the script is executed as a cron-job. In my case on a Raspberry.
Cron sends the output of the process by mail. So I get a daily mail, even if everything was fine.

To prevent this, I start the script with
>/dev/null 2>&1

But this also means that I do not get a mail in case of an error.

It would be helpful if there was a quiet option that only outputs when an error occurs.

blacksenator added a commit to blacksenator/carddav2fb that referenced this issue Apr 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants