Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

Commit

Permalink
Should use top level defaultLogger, not static member
Browse files Browse the repository at this point in the history
  • Loading branch information
Bouke committed Jan 4, 2017
1 parent a348b50 commit 253b758
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Evergreen/Logger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -489,8 +489,8 @@ extension Logger: CustomStringConvertible {
}

public func description(_ keyPathSeparator: String? = nil) -> String {
var keyPath = self.keyPath(upToParent: defaultLogger)
if self.root !== defaultLogger {
var keyPath = self.keyPath(upToParent: Evergreen.defaultLogger)
if self.root !== Evergreen.defaultLogger {
keyPath = keyPath.keyPathByPrependingComponent("DETACHED")
}
return keyPath.description(separator: keyPathSeparator)
Expand Down

0 comments on commit 253b758

Please sign in to comment.