mirror of
https://github.com/twitter/the-algorithm.git
synced 2024-06-28 05:56:04 +02:00
ef4c5eb65e
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.
18 lines
472 B
Java
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);
|
|
}
|
|
}
|