aboutsummaryrefslogtreecommitdiff
path: root/kamon-spray
diff options
context:
space:
mode:
authorIvan Topolnjak <ivantopo@gmail.com>2014-11-09 17:39:14 +0100
committerIvan Topolnjak <ivantopo@gmail.com>2014-11-09 18:01:46 +0100
commitf4bf6a7cd5da723607fb2a3c5f98a5e56d7b0be7 (patch)
tree6e8487822f0a2d730b08499f5be8d400b9e1708c /kamon-spray
parent88bc1b94b2d737e01074a8f41391367f59796157 (diff)
downloadKamon-f4bf6a7cd5da723607fb2a3c5f98a5e56d7b0be7.tar.gz
Kamon-f4bf6a7cd5da723607fb2a3c5f98a5e56d7b0be7.tar.bz2
Kamon-f4bf6a7cd5da723607fb2a3c5f98a5e56d7b0be7.zip
= core,spray,newrelic: minor formatting changes.
Diffstat (limited to 'kamon-spray')
-rw-r--r--kamon-spray/src/main/scala/spray/can/server/ServerRequestInstrumentation.scala5
1 files changed, 2 insertions, 3 deletions
diff --git a/kamon-spray/src/main/scala/spray/can/server/ServerRequestInstrumentation.scala b/kamon-spray/src/main/scala/spray/can/server/ServerRequestInstrumentation.scala
index 66774e84..93a9cf55 100644
--- a/kamon-spray/src/main/scala/spray/can/server/ServerRequestInstrumentation.scala
+++ b/kamon-spray/src/main/scala/spray/can/server/ServerRequestInstrumentation.scala
@@ -93,10 +93,9 @@ class ServerRequestInstrumentation {
system.eventStream.publish(Warning("ServerRequestInstrumentation", classOf[ServerRequestInstrumentation], text))
if (incomingTraceContext.nonEmpty) {
- if(incomingTraceContext.token != storedTraceContext.token)
+ if (incomingTraceContext.token != storedTraceContext.token)
publishWarning(s"Different trace token found when trying to close a trace, original: [${storedTraceContext.token}] - incoming: [${incomingTraceContext.token}]", system)
- }
- else
+ } else
publishWarning(s"EmptyTraceContext present while closing the trace with token [${storedTraceContext.token}]", system)
}