Skip to content

Commit

Permalink
[Minor] Only show privilege duration if > 100ms
Browse files Browse the repository at this point in the history
  • Loading branch information
eitch committed Sep 18, 2023
1 parent 189c97a commit d9daad3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,9 @@ public boolean persist() {
saved = true;
}

logger.info("Persist took " + (formatNanoDuration(System.nanoTime() - start)));
long tookNanos = System.nanoTime() - start;
if (TimeUnit.NANOSECONDS.toMillis(tookNanos) > 100)
logger.warn("Persist took " + (formatNanoDuration(tookNanos)));
return saved;
}
}

0 comments on commit d9daad3

Please sign in to comment.