Forum Discussion
alita535_138347
Nimbostratus
Mar 07, 2014Bigsuds Logging, how do i turn it off
i have bigsuds working within a async web framework with kombu and rabbit mq. To handle errors i've got a significant level of logging going on. BIGSUDS seems to want to log the entire WSDL. I wan...
Jason_Antman_40
Nimbostratus
May 27, 2015This issue isn't specific to bigsuds, it's general use of the Python Logging library, though I'm still surprised none of the samples here do it. bigsuds uses the Python standard
logging library; if you're seeing the messages, it's probably because you have a debug-level log handler defined somewhere in your application.
The following will silently suppress any log messages from
bigsuds and the underlying suds library that are below the WARNING level. Place this in the file where you import bigsuds, right after the bigsuds import line.
import logging
suppress suds internal logging
suds_log = logging.getLogger("suds")
suds_log.setLevel(logging.WARNING)
suds_log.propagate = True
suppress bigsuds internal logging
bigsuds_log = logging.getLogger("bigsuds")
bigsuds_log.setLevel(logging.WARNING)
bigsuds_log.propagate = True
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects