Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions src/main/java/com/metamx/common/logger/Logger.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,13 @@ public void info(Throwable t, String message, Object... formatArgs)

/**
* Protect against assuming slf4j convention. use `warn(Throwable t, String message, Object... formatArgs)` instead
*
* @param message The string message
* @param t The Throwable to log
* @param t The Throwable to log
*/
@Deprecated
public void warn(String message, Throwable t) {
public void warn(String message, Throwable t)
{
log.warn(message, t);
}

Expand All @@ -104,11 +106,13 @@ public void error(String message, Object... formatArgs)

/**
* Protect against assuming slf4j convention. use `error(Throwable t, String message, Object... formatArgs)` instead
*
* @param message The string message
* @param t The Throwable to log
* @param t The Throwable to log
*/
@Deprecated
public void error(String message, Throwable t) {
public void error(String message, Throwable t)
{
log.error(message, t);
}

Expand Down