forked from j62/ctbrec
1
0
Fork 0

Don't print stacktrace on timeout in OnlineMonitor

This commit is contained in:
0xboobface 2018-11-28 20:30:45 +01:00
parent 52fe184cea
commit ede6dd73d2
1 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import static ctbrec.Recording.STATUS.*;
import java.io.File;
import java.io.FilenameFilter;
import java.io.IOException;
import java.net.SocketTimeoutException;
import java.nio.file.FileStore;
import java.nio.file.Files;
import java.security.InvalidKeyException;
@ -441,6 +442,8 @@ public class LocalRecorder implements Recorder {
} catch (HttpException e) {
LOG.error("Couldn't check if model {} is online. HTTP Response: {} - {}",
model.getName(), e.getResponseCode(), e.getResponseMessage());
} catch (SocketTimeoutException e) {
LOG.error("Couldn't check if model {} is online. Request timed out", model.getName());
} catch (Exception e) {
LOG.error("Couldn't check if model {} is online", model.getName(), e);
}