the-algorithm/src/java/com/twitter/search/earlybird_root/ExceptionHandler.java
twitter-team ef4c5eb65e Twitter Recommendation Algorithm
Please note we have force-pushed a new initial commit in order to remove some publicly-available Twitter user information. Note that this process may be required in the future.
2023-03-31 17:36:31 -05:00

18 lines
472 B
Java

package com.twitter.search.earlybird_root;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.twitter.search.earlybird.thrift.EarlybirdRequest;
public final class ExceptionHandler {
private static final Logger LOG = LoggerFactory.getLogger(ExceptionHandler.class);
private ExceptionHandler() {
}
public static void logException(EarlybirdRequest request, Throwable e) {
LOG.error("Exception while handling request: {}", request, e);
}
}