Browse files

fix periodic reporting of gauges.

  • Loading branch information...
1 parent 15e0378 commit 945224c12efb7520039e15817f28bcd58194a7cc @mariusae mariusae committed Jan 11, 2011
View
1 finagle-core/src/main/scala/com/twitter/finagle/stats/JavaLoggerStatsReceiver.scala
@@ -20,6 +20,7 @@ case class JavaLoggerStatsReceiver(logger: Logger) extends StatsReceiver {
def makeGauge(name: String, f: => Float) {
timer(10.seconds) {
logger.info("%s %2f".format(name, f))
+ makeGauge(name, f)
}
}
}

0 comments on commit 945224c

Please sign in to comment.