You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by bt...@apache.org on 2020/07/17 02:24:17 UTC

[james-project] 03/31: JAMES-3107 Log slow traces to WARN

This is an automated email from the ASF dual-hosted git repository.

btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 85ba240856715e7c35bce354e2227c980e2c8d55
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Thu Jul 9 10:15:02 2020 +0700

    JAMES-3107 Log slow traces to WARN
---
 .../java/org/apache/james/metrics/dropwizard/DropWizardTimeMetric.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/metrics/metrics-dropwizard/src/main/java/org/apache/james/metrics/dropwizard/DropWizardTimeMetric.java b/metrics/metrics-dropwizard/src/main/java/org/apache/james/metrics/dropwizard/DropWizardTimeMetric.java
index 834da92..ab0fe78 100644
--- a/metrics/metrics-dropwizard/src/main/java/org/apache/james/metrics/dropwizard/DropWizardTimeMetric.java
+++ b/metrics/metrics-dropwizard/src/main/java/org/apache/james/metrics/dropwizard/DropWizardTimeMetric.java
@@ -57,7 +57,7 @@ public class DropWizardTimeMetric implements TimeMetric {
         public ExecutionResult logWhenExceedP99(Duration thresholdInNanoSeconds) {
             Preconditions.checkNotNull(thresholdInNanoSeconds);
             if (elasped.compareTo(p99) > 0 && elasped.compareTo(thresholdInNanoSeconds) > 0) {
-                LOGGER.info("{} metrics took {} nano seconds to complete, exceeding its {} nano seconds p99",
+                LOGGER.warn("{} metrics took {} nano seconds to complete, exceeding its {} nano seconds p99",
                     name, elasped, p99);
             }
             return this;


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org