[elbe-devel] [PATCH v2 09/27] daemons soap: set soap loglevel to INFO
Torben Hohn
torben.hohn at linutronix.de
Thu Sep 24 16:56:06 CEST 2020
soap spams elbe daemons output with a huge number of debugging
output. This is porbably caused by elbes logging setting the
default loglevel to DEBUG.
Set the loglevel for all loggers of spyne to INFO.
Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
elbepack/daemons/soap/__init__.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/elbepack/daemons/soap/__init__.py b/elbepack/daemons/soap/__init__.py
index 8b6dd30f0..01500f374 100644
--- a/elbepack/daemons/soap/__init__.py
+++ b/elbepack/daemons/soap/__init__.py
@@ -5,6 +5,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
import sys
+import logging
from beaker.middleware import SessionMiddleware
from cherrypy.process.plugins import SimplePlugin
@@ -23,6 +24,8 @@ except ImportError as e:
sys.exit(20)
+logging.getLogger('spyne').setLevel(logging.INFO)
+
class EsoapApp(Application):
def __init__(self, *args, **kargs):
--
2.20.1
More information about the elbe-devel
mailing list