Permalink
Browse files

METRICS-3223(related): Replaced JUL logger with Insight one for 'rabb…

…itmq-client' plugin - forgot some classes (?!)
  • Loading branch information...
1 parent 00e90d0 commit 08f22c9bf1eedcdf8313c117b97c3e4f6891df3d lgoldstein committed Feb 4, 2013
@@ -26,7 +26,6 @@
import java.util.Map;
import java.util.concurrent.atomic.AtomicReference;
import java.util.logging.Level;
-import java.util.logging.Logger;
import org.aspectj.lang.JoinPoint;
@@ -290,16 +289,16 @@ static Method getBytesRetrievalMethod (Class<?> anchor) {
return clazz;
} catch(Exception e) {
if (!(e instanceof ClassNotFoundException)) {
- Logger LOG=Logger.getLogger(anchor.getName());
- LOG.warning("Failed (" + e.getClass().getSimpleName() + ")"
- + " to load class=" + className
- + ": " + e.getMessage());
+ InsightLogManager.getLogger(anchor.getName())
+ .warning("Failed (" + e.getClass().getSimpleName() + ")"
+ + " to load class=" + className
+ + ": " + e.getMessage());
}
}
}
- Logger LOG=Logger.getLogger(anchor.getName());
- LOG.warning("getLongStringClass(" + anchor.getSimpleName() + ") no match found");
+ InsightLogManager.getLogger(anchor.getName())
+ .warning("getLongStringClass(" + anchor.getSimpleName() + ") no match found");
longStringClassHolder.set(String.class); // avoid repeated load attempts and use an incompatible class
return null;
}

0 comments on commit 08f22c9

Please sign in to comment.