]> git.ipfire.org Git - thirdparty/plymouth.git/commit
ply-logger: Add a ply_is_tracing_to_terminal () helper
authorHans de Goede <hdegoede@redhat.com>
Sat, 27 Mar 2021 12:07:32 +0000 (13:07 +0100)
committerHans de Goede <hdegoede@redhat.com>
Mon, 29 Mar 2021 07:24:45 +0000 (09:24 +0200)
commitca869a3fff761ea014e87db63c631fb85d968d91
tree39be47f6ebb89a02664a048be63f230419d75a6e
parentcf1ca1945cd6714755aea56855d53051d1af215e
ply-logger: Add a ply_is_tracing_to_terminal () helper

Track if we are logging to the terminal (or to a file) and add
a new ply_is_tracing_to_terminal () helper.

This will be used in follow-up patches to replace some
ply_is_tracing () checks for things which should only be done
when tracing to a terminal (and not when tracing to a file).

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
src/libply/ply-logger.c
src/libply/ply-logger.h