Skip to content

Commit

Permalink
Add errorWithKey for Conditional logger (#1099)
Browse files Browse the repository at this point in the history
  • Loading branch information
DGarbar authored and nickluck8 committed Aug 10, 2021
1 parent 6ac1d92 commit 33fb771
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/prebid/server/log/ConditionalLogger.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ public void info(String message, long duration, TimeUnit unit) {
log(message, duration, unit, logger -> logger.info(message));
}

public void errorWithKey(String key, String message, int limit) {
log(key, limit, logger -> logger.error(message));
}

public void error(String message, int limit) {
log(message, limit, logger -> logger.error(message));
}
Expand Down

0 comments on commit 33fb771

Please sign in to comment.