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 9, 2021
1 parent 1b9d8cd commit 6541f73
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 6541f73

Please sign in to comment.