RED-4029 - Do not log on ERROR level if something happens that is expected

- replace error logs
This commit is contained in:
devplant 2022-06-03 15:31:00 +03:00
parent ac19defa1c
commit ffa251643a
3 changed files with 4 additions and 4 deletions

View File

@ -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");
}

View File

@ -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()

View File

@ -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);
}
}
}