Pull request #401: RED-4029 - Do not log on ERROR level if something happens that is expected
Merge in RED/redaction-service from RED-4029 to master * commit 'ffa251643a2e4d711bac01469d31e09c3c8b8290': RED-4029 - Do not log on ERROR level if something happens that is expected - replace error logs
This commit is contained in:
commit
fbd55c15ef
@ -23,10 +23,10 @@ public class ControllerAdvice {
|
|||||||
@ExceptionHandler(value = NullPointerException.class)
|
@ExceptionHandler(value = NullPointerException.class)
|
||||||
public ErrorMessage handleContentNotFoundException(NullPointerException e) {
|
public ErrorMessage handleContentNotFoundException(NullPointerException e) {
|
||||||
if (e != null) {
|
if (e != null) {
|
||||||
log.error(e.getMessage(), e);
|
log.debug(e.getMessage(), e);
|
||||||
return new ErrorMessage(OffsetDateTime.now(), e.getMessage());
|
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");
|
return new ErrorMessage(OffsetDateTime.now(), "Nullpointer exception");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -187,7 +187,7 @@ public class PDFLinesTextStripper extends PDFTextStripper {
|
|||||||
rulings.addAll(path);
|
rulings.addAll(path);
|
||||||
}
|
}
|
||||||
} catch (UnsupportedOperationException e) {
|
} catch (UnsupportedOperationException e) {
|
||||||
log.error("UnsupportedOperationException: " + getGraphicsState().getStrokingColor()
|
log.debug("UnsupportedOperationException: " + getGraphicsState().getStrokingColor()
|
||||||
.getColorSpace()
|
.getColorSpace()
|
||||||
.getName() + " or " + getGraphicsState().getNonStrokingColor()
|
.getName() + " or " + getGraphicsState().getNonStrokingColor()
|
||||||
.getColorSpace()
|
.getColorSpace()
|
||||||
|
|||||||
@ -1871,7 +1871,7 @@ public class PDFTextStripper extends LegacyPDFStreamEngine
|
|||||||
}
|
}
|
||||||
catch (IOException e)
|
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