Author: fmeschbe
Date: Thu Jul 23 12:27:50 2009
New Revision: 797038
URL: http://svn.apache.org/viewvc?rev=797038&view=rev
Log:
SLING-1060 Fix wrong check with existing log writer
(must be == instead of !=)
Modified:
sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/internal/slf4j/LogConfigManager.java
Modified:
sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/internal/slf4j/LogConfigManager.java
URL:
http://svn.apache.org/viewvc/sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/internal/slf4j/LogConfigManager.java?rev=797038&r1=797037&r2=797038&view=diff
==============================================================================
---
sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/internal/slf4j/LogConfigManager.java
(original)
+++
sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/internal/slf4j/LogConfigManager.java
Thu Jul 23 12:27:50 2009
@@ -273,7 +273,7 @@
// ensure unique configuration of the log writer
SlingLoggerWriter existingWriter =
writerByFileName.get(logFileName);
if (existingWriter != null) {
- if (slw != null) {
+ if (slw == null) {
// this is an implicit writer being configured now
slw = existingWriter;