2 * SPDX-License-Identifier: LGPL-2.1-only
4 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
7 #include <usterr-signal-safe.h>
9 volatile enum ust_loglevel ust_loglevel
;
11 void init_usterr(void)
15 if (ust_loglevel
== UST_LOGLEVEL_UNKNOWN
) {
17 * This getenv is not part of lttng_getenv() because it
18 * is required to print ERR() performed during getenv
21 ust_debug
= getenv("LTTNG_UST_DEBUG");
23 ust_loglevel
= UST_LOGLEVEL_DEBUG
;
25 ust_loglevel
= UST_LOGLEVEL_NORMAL
;