Change log levels in DefaultEdqsStatsService
This commit is contained in:
parent
33fd8af17e
commit
e967a99430
@ -68,7 +68,7 @@ public class DefaultEdqsStatsService implements EdqsStatsService {
|
|||||||
public void reportDataQuery(TenantId tenantId, EntityDataQuery query, long timingNanos) {
|
public void reportDataQuery(TenantId tenantId, EntityDataQuery query, long timingNanos) {
|
||||||
double timingMs = timingNanos / 1000_000.0;
|
double timingMs = timingNanos / 1000_000.0;
|
||||||
if (timingMs < slowQueryThreshold) {
|
if (timingMs < slowQueryThreshold) {
|
||||||
log.info("[{}] Executed data query in {} ms: {}", tenantId, timingMs, query);
|
log.debug("[{}] Executed data query in {} ms: {}", tenantId, timingMs, query);
|
||||||
} else {
|
} else {
|
||||||
log.warn("[{}] Executed slow data query in {} ms: {}", tenantId, timingMs, query);
|
log.warn("[{}] Executed slow data query in {} ms: {}", tenantId, timingMs, query);
|
||||||
}
|
}
|
||||||
@ -79,7 +79,7 @@ public class DefaultEdqsStatsService implements EdqsStatsService {
|
|||||||
public void reportCountQuery(TenantId tenantId, EntityCountQuery query, long timingNanos) {
|
public void reportCountQuery(TenantId tenantId, EntityCountQuery query, long timingNanos) {
|
||||||
double timingMs = timingNanos / 1000_000.0;
|
double timingMs = timingNanos / 1000_000.0;
|
||||||
if (timingMs < slowQueryThreshold) {
|
if (timingMs < slowQueryThreshold) {
|
||||||
log.info("[{}] Executed count query in {} ms: {}", tenantId, timingMs, query);
|
log.debug("[{}] Executed count query in {} ms: {}", tenantId, timingMs, query);
|
||||||
} else {
|
} else {
|
||||||
log.warn("[{}] Executed slow count query in {} ms: {}", tenantId, timingMs, query);
|
log.warn("[{}] Executed slow count query in {} ms: {}", tenantId, timingMs, query);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user