From 0cc360320622a697bbc97af1eb27e78dba4fee25 Mon Sep 17 00:00:00 2001 From: Bartosz Firyn Date: Sun, 18 Nov 2012 13:29:07 +0100 Subject: [PATCH] Fix error logging --- .../src/main/java/com/github/sarxos/webcam/Webcam.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webcam-capture/src/main/java/com/github/sarxos/webcam/Webcam.java b/webcam-capture/src/main/java/com/github/sarxos/webcam/Webcam.java index 96d8c3ac..6915829f 100644 --- a/webcam-capture/src/main/java/com/github/sarxos/webcam/Webcam.java +++ b/webcam-capture/src/main/java/com/github/sarxos/webcam/Webcam.java @@ -121,7 +121,7 @@ public synchronized void open() { try { l.webcamOpen(we); } catch (Exception e) { - LOG.error("Notify webcam open, exception when calling {}", WebcamListener.class.getSimpleName(), e); + LOG.error(String.format("Notify webcam open, exception when calling %s listener", l.getClass()), e); } } } @@ -160,7 +160,7 @@ private void close0() { try { l.webcamClosed(we); } catch (Exception e) { - LOG.error("Notify webcam closed, exception when calling {}", WebcamListener.class.getSimpleName(), e); + LOG.error(String.format("Notify webcam closed, exception when calling %s listener", l.getClass()), e); } } }