FELIX-882 Replace three uses of the servlet context logger by
the Logger.
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@734721 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/src/main/java/org/apache/felix/webconsole/internal/servlet/OsgiManager.java b/webconsole/src/main/java/org/apache/felix/webconsole/internal/servlet/OsgiManager.java
index ae93ffc..dd60c56 100644
--- a/webconsole/src/main/java/org/apache/felix/webconsole/internal/servlet/OsgiManager.java
+++ b/webconsole/src/main/java/org/apache/felix/webconsole/internal/servlet/OsgiManager.java
@@ -250,7 +250,7 @@
}
catch ( Throwable t )
{
- log( "Failed to instantiate plugin " + pluginClassName + ". Reason: " + t );
+ log.log( LogService.LOG_INFO, "Failed to instantiate plugin " + pluginClassName + ". Reason: " + t );
}
}
@@ -368,11 +368,11 @@
}
catch ( IOException ioe )
{
- this.log( ioe.getMessage(), ioe );
+ log.log( LogService.LOG_WARNING, ioe.getMessage(), ioe );
}
catch ( ServletException se )
{
- this.log( se.getMessage(), se.getRootCause() );
+ log.log( LogService.LOG_WARNING, se.getMessage(), se.getRootCause() );
}
// maybe overwrite redirect