Forum Discussion
Bigsuds 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 want to turn it off but i don't see any obvious documentation here to do so.
1 Reply
- Jason_Antman_40
Nimbostratus
This 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
library; if you're seeing the messages, it's probably because you have a debug-level log handler defined somewhere in your application.loggingThe following will silently suppress any log messages from
and the underlyingbigsuds
library that are below thesuds
level. Place this in the file where you importWARNING
, right after the bigsuds import line.bigsudsimport 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
* 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