← Back to team overview

rapache-devel team mailing list archive

[Bug 250528] Re: Please don't hide plugin loading errors

 

** Changed in: rapache
       Status: New => Fix Released

-- 
Please don't hide plugin loading errors
https://bugs.launchpad.net/bugs/250528
You received this bug notification because you are a member of Rapache
Developers, which is subscribed to Remote Apache Management tool .

Status in rapache: Fix Released

Bug description:
I think we shuold print the exceptions that happen plugin loading for debug purposes.

=== modified file 'RapacheCore/PluginManager.py'
--- RapacheCore/PluginManager.py	2008-07-21 04:08:40 +0000
+++ RapacheCore/PluginManager.py	2008-07-21 14:17:42 +0000
@@ -2,7 +2,7 @@
 import os.path
 import imp
 import sys
-
+import traceback
 class PluginManager():
 
 	def __init__(self, pluginpath=None):
@@ -26,6 +26,7 @@
 					self.plugins.append(obj)
 					print "loaded plugin : " + folder
 				except:
+					traceback.print_exc(file=sys.stdout)
 					print "error loading plugin " + folder
 		
 		print ""



References