Please don't hide plugin loading errors

Bug #250528 reported by TAC one
2
Affects Status Importance Assigned to Milestone
Remote Apache Management tool
Fix Released
Undecided
KillerKiwi

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

TAC one (tacone)
Changed in rapache:
assignee: nobody → killerkiwi2005
TAC one (tacone)
Changed in rapache:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.