summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Campo2008-01-23 05:49:38 (EST)
committerChristian Campo2008-01-23 05:49:38 (EST)
commit5b73e9af29376170360b3606a8b111e7f4df8aef (patch)
tree4c9090b0b7609fe9aac66a3edb761f94dea0ddc6
parentbdee8963343096857e49a59a577012bc4a1369ec (diff)
downloadorg.eclipse.riena-5b73e9af29376170360b3606a8b111e7f4df8aef.zip
org.eclipse.riena-5b73e9af29376170360b3606a8b111e7f4df8aef.tar.gz
org.eclipse.riena-5b73e9af29376170360b3606a8b111e7f4df8aef.tar.bz2
initialized was not set
-rw-r--r--org.eclipse.riena.core/src/org/eclipse/riena/core/logging/LogUtil.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.riena.core/src/org/eclipse/riena/core/logging/LogUtil.java b/org.eclipse.riena.core/src/org/eclipse/riena/core/logging/LogUtil.java
index d83a50a..f5938a7 100644
--- a/org.eclipse.riena.core/src/org/eclipse/riena/core/logging/LogUtil.java
+++ b/org.eclipse.riena.core/src/org/eclipse/riena/core/logging/LogUtil.java
@@ -19,7 +19,6 @@ import org.osgi.framework.InvalidSyntaxException;
import org.osgi.framework.ServiceEvent;
import org.osgi.framework.ServiceListener;
import org.osgi.framework.ServiceReference;
-import org.osgi.service.log.LogService;
/**
* Wrapper to access the existing Logger.
@@ -40,6 +39,7 @@ public class LogUtil {
public Logger getLogger(String name) {
if (!initialized) {
init();
+ initialized = true;
}
if (logService != null) {
return logService.getLogger(name);
@@ -61,7 +61,7 @@ public class LogUtil {
if (event.getType() == ServiceEvent.REGISTERED) {
logServiceReference = event.getServiceReference();
logService = (ExtendedLogService) Activator.getDefault().getContext().getService(logServiceReference);
- getLogger("Campo").log(LogService.LOG_INFO, "Stefan");
+ // getLogger("Campo").log(LogService.LOG_INFO, "Stefan");
} else if (event.getType() == ServiceEvent.UNREGISTERING) {
context.ungetService(logServiceReference);
logServiceReference = null;