Skip to content

Commit ca0a4af

Browse files
committed
Filter DEBUG syslog to avoid poor performance #188
1 parent 700434f commit ca0a4af

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/py_gpio.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ PyMODINIT_FUNC initGPIO(void)
582582

583583
define_constants(module);
584584

585-
initlog(LOG_DEBUG, NULL, BBIO_LOG_OPTION);
585+
initlog(LOG_INFO, NULL, BBIO_LOG_OPTION);
586586

587587
if (!PyEval_ThreadsInitialized())
588588
PyEval_InitThreads();

source/py_pwm.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ PyMODINIT_FUNC initPWM(void)
252252

253253
define_constants(module);
254254

255-
initlog(LOG_DEBUG, NULL, BBIO_LOG_OPTION);
255+
initlog(LOG_INFO, NULL, BBIO_LOG_OPTION);
256256

257257
#if PY_MAJOR_VERSION > 2
258258
return module;

0 commit comments

Comments
 (0)