Skip to content

Commit

Permalink
Fix query service error counter
Browse files Browse the repository at this point in the history
Author: @franklinhu
Fixes #120
URL: #120
  • Loading branch information
Franklin Hu committed Aug 23, 2012
1 parent f6fbc6a commit edb79fd
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -126,7 +126,7 @@ class QueryService(storage: Storage, index: Index, aggregates: Aggregates, adjus
annotation, value, endTs, limit, order))
call(method) {
if (annotation == null || "".equals(annotation)) {
errorStats.counter("%s_no_annotation").incr()
errorStats.counter("%s_no_annotation".format(method)).incr()
return Future.exception(gen.QueryException("No annotation provided"))
}

Expand Down

0 comments on commit edb79fd

Please sign in to comment.