krallin / tini

A tiny but valid `init` for containers
MIT License
9.66k stars 505 forks source link

Supress TRACE but show DEBUG #200

Open markddrake opened 1 year ago

markddrake commented 1 year ago

I am using tini in a project and it is working perfectly. However I am getting a lot of 'No child to reap' messages. See below

foscam-server-vsftp-1    | [TRACE tini (1)] No child to reap
foscam-server-vsftp-1    | [TRACE tini (1)] No child to reap
foscam-server-vsftp-1    | [DEBUG tini (1)] Received SIGCHLD
foscam-server-vsftp-1    | [DEBUG tini (1)] Reaped child with pid: '324'
foscam-server-vsftp-1    | [TRACE tini (1)] No child to reap
foscam-server-vsftp-1    | [TRACE tini (1)] No child to reap

Is there a way to suppress the TRACE message but leave the DEBUG messages in the above example

krallin commented 1 year ago

This is controlled by a flag (-v) — you might be passing -vvv? Try passing -vv instead?

There’s also an env var (TINI_VERBOSITY) you might be setting — reduce the number there.

On Tue, 11 Oct 2022 at 17:16, Mark Drake @.***> wrote:

I am using tini in a project and it is working perfectly. However I am getting a lot of 'No child to reap' messages. See below

foscam-server-vsftp-1 | [TRACE tini (1)] No child to reap foscam-server-vsftp-1 | [TRACE tini (1)] No child to reap foscam-server-vsftp-1 | [DEBUG tini (1)] Received SIGCHLD foscam-server-vsftp-1 | [DEBUG tini (1)] Reaped child with pid: '324' foscam-server-vsftp-1 | [TRACE tini (1)] No child to reap foscam-server-vsftp-1 | [TRACE tini (1)] No child to reap

Is there a way to suppress the TRACE message but leave the DEBUG messages in the above example

— Reply to this email directly, view it on GitHub https://github.com/krallin/tini/issues/200, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANIHVUHH7BHJMUAJCLPLKLWCWAF7ANCNFSM6AAAAAARCMWTVE . You are receiving this because you are subscribed to this thread.Message ID: @.***>