← Back to team overview

rapache-devel team mailing list archive

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

 

Public bug reported:

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 ""

** Affects: rapache
     Importance: Undecided
     Assignee: KillerKiwi (killerkiwi2005)
         Status: New

** Changed in: rapache
     Assignee: (unassigned) => KillerKiwi (killerkiwi2005)

-- 
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: New

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 ""



Follow ups

References