Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-15812

Suggestion to improve error logging PluginFactory

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 15.7.0, 16.1.0
    • None

    Description

      A suggestion from a client to improve error logging in the PluginFactory.

      The message

      message += String.format("\nFailed to instantiate plugin class '%s' for wicket id '%s' in plugin '%s' (%s)",
        

       

      only gets logged when there is no wicketid.

      Suggestion is to add the line "log.error(message);" to improve the logging.

        if (wicketId != null) {    
          **   
          errorConfig.put(ErrorPlugin.ERROR_MESSAGE, message);    
          **   
          log.error(message);
        } else {    
          log.error(message);
        }
      

       

       

      Attachments

        Issue Links

          Activity

            People

              jhoffman Jeroen Hoffman
              mmilicevic Marijan Milicevic
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: