nextcloud / nextcloud/updater

Implement `--quiet` to only output errors

Open
#162 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement mode: cli
Dominant language
PHP
Stars
51
Forks
40
Avg merge
2d 19h
Merged PRs (30d)
3

Description

I have updater.phar executed by a cron job, including the --quiet flag to avoid unnecessary emails. This works as long as nothing happens, but when the updater actually performs an update, there is a lot of text still written to stdout, resulting in an email. Personally, I'm only interested in getting mails when something goes wrong (stderr output).

I would like to know if the current behavior is intended and if there won't be support for my usecase. In this case I would need to stay with /dev/null redirection.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating how the updater.phar command parses and handles --quiet, then trace where update status text is written to stdout and errors to stderr. Done means quiet runs emit no normal update output while preserving error output, with behavior verified for both a successful update and a failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.