1 # -*- coding: utf-8 -*-
3 # SPDX-License-Identifier: LGPL-2.1-only
5 # Copyright (C) 2015 Philippe Proulx <pproulx@efficios.com>
7 from __future__
import unicode_literals
, print_function
14 _ENABLE_DEBUG
= os
.getenv('LTTNG_UST_PYTHON_DEBUG', '0') == '1'
21 fname
= inspect
.stack()[1][3]
22 fmt
= '[{:.6f}] LTTng-UST warning: {}(): {}'
23 print(fmt
.format(lttngust
.compat
._clock
(), fname
, msg
), file=sys
.stderr
)
26 fname
= inspect
.stack()[1][3]
27 fmt
= '[{:.6f}] LTTng-UST debug: {}(): {}'
28 print(fmt
.format(lttngust
.compat
._clock
(), fname
, msg
), file=sys
.stderr
)
30 _pdebug('debug is enabled')
This page took 0.030452 seconds and 4 git commands to generate.