From d6b9e91a0dfdf6dbe4e9738dc664b6949c3ea090 Mon Sep 17 00:00:00 2001 From: Lex Li <425130+lextm@users.noreply.github.com> Date: Mon, 28 Oct 2024 14:00:37 -0700 Subject: [PATCH] Removed deprecated calls. --- docs/source/troubleshooting.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/troubleshooting.rst b/docs/source/troubleshooting.rst index 2c6d2e153..0bda59aee 100644 --- a/docs/source/troubleshooting.rst +++ b/docs/source/troubleshooting.rst @@ -21,10 +21,10 @@ following snippet of code at the beginning of your application: from pysnmp import debug # use specific flags for debugging - debug.setLogger(debug.Debug('dsp', 'msgproc', 'secmod')) + debug.set_logger(debug.Debug('dsp', 'msgproc', 'secmod')) # use 'all' for full debugging - debug.setLogger(debug.Debug('all')) + debug.set_logger(debug.Debug('all')) Then run your app and watch stderr. The Debug initializer enables debugging for a particular PySNMP subsystem, 'all' enables full debugging. More