RED-4029 - Do not log on ERROR level if something happens that is expected
- replace error logs
This commit is contained in:
parent
ac19defa1c
commit
ffa251643a
@ -23,10 +23,10 @@ public class ControllerAdvice {
|
||||
@ExceptionHandler(value = NullPointerException.class)
|
||||
public ErrorMessage handleContentNotFoundException(NullPointerException e) {
|
||||
if (e != null) {
|
||||
log.error(e.getMessage(), e);
|
||||
log.debug(e.getMessage(), e);
|
||||
return new ErrorMessage(OffsetDateTime.now(), e.getMessage());
|
||||
}
|
||||
log.error("Nullpointer exception at ", e);
|
||||
log.debug("Nullpointer exception at ", e);
|
||||
return new ErrorMessage(OffsetDateTime.now(), "Nullpointer exception");
|
||||
}
|
||||
|
||||
|
||||
@ -187,7 +187,7 @@ public class PDFLinesTextStripper extends PDFTextStripper {
|
||||
rulings.addAll(path);
|
||||
}
|
||||
} catch (UnsupportedOperationException e) {
|
||||
log.error("UnsupportedOperationException: " + getGraphicsState().getStrokingColor()
|
||||
log.debug("UnsupportedOperationException: " + getGraphicsState().getStrokingColor()
|
||||
.getColorSpace()
|
||||
.getName() + " or " + getGraphicsState().getNonStrokingColor()
|
||||
.getColorSpace()
|
||||
|
||||
@ -1871,7 +1871,7 @@ public class PDFTextStripper extends LegacyPDFStreamEngine
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
LOG.error("Could not close BidiMirroring.txt ", e);
|
||||
LOG.debug("Could not close BidiMirroring.txt ", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user