1. Miks Kalniņš
  2. moin-2.0
  3. Issues
Issue #9 resolved

exception catching and logging in init_all_plugins

Thomas Waldmann
created an issue

{{{ except: if ignore_exceptions: logging.error("Failed to initialize: {0}".format(class_id)) else: raise }}}

Hint: there is logging.exception() especially made for such stuff (so one has enough information in the log to really find and fix the problem). If you just tell the class_id, you are hiding important information.

See http://docs.python.org/library/exceptions.html - maybe you rather want to do "except Exception as exc:" to not catch the keyboard interrupt.