Revision e17ffb52 src/main/scala/gr/grnet/aquarium/util/ContextualLogger.scala
b/src/main/scala/gr/grnet/aquarium/util/ContextualLogger.scala | ||
---|---|---|
183 | 183 |
debug("END") |
184 | 184 |
} |
185 | 185 |
|
186 |
def endWith[A](f: ⇒A): A = { |
|
186 |
def endWith[A : Manifest](f: A): A = { |
|
187 |
// We must evaluate `f` first, since it may depend on this ContextualLogger |
|
188 |
val result = f |
|
187 | 189 |
end() |
188 |
f
|
|
190 |
result
|
|
189 | 191 |
} |
190 | 192 |
} |
191 | 193 |
|
Also available in: Unified diff