[elbe-devel] [PATCH v2 09/27] daemons soap: set soap loglevel to INFO

Bastian Germann bage at linutronix.de
Thu Sep 24 17:06:10 CEST 2020


Am 24.09.20 um 16:56 schrieb Torben Hohn:
> soap spams elbe daemons output with a huge number of debugging
> output. This is porbably caused by elbes logging setting the

probably caused by elbe's

> default loglevel to DEBUG.
> 
> Set the loglevel for all loggers of spyne to INFO.
> 
> Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>

With the typos fixed:
Reviewed-by: Bastian Germann <bage 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):
> 


More information about the elbe-devel mailing list