Skip to content

Commit

Permalink
Merge pull request #7 from briantopping/6
Browse files Browse the repository at this point in the history
Issue 6: Don't clobber existing logger.
  • Loading branch information
alexandru committed Dec 17, 2015
2 parents 021b255 + 6aafc74 commit c081b4b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/scala/shade/memcached/MemcachedImpl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,10 @@ class MemcachedImpl(config: Configuration, ec: ExecutionContext) extends Memcach

private[this] val prefix = config.keysPrefix.getOrElse("")
private[this] val instance = {
System.setProperty("net.spy.log.LoggerImpl",
"shade.memcached.internals.Slf4jLogger")
if (System.getProperty("net.spy.log.LoggerImpl") == null) {
System.setProperty("net.spy.log.LoggerImpl",
"shade.memcached.internals.Slf4jLogger")
}

val conn = {
val builder = new ConnectionFactoryBuilder()
Expand Down

0 comments on commit c081b4b

Please sign in to comment.