diff --git a/docs/source/troubleshooting.rst b/docs/source/troubleshooting.rst index 2c6d2e15..0bda59ae 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