change level to warn until known cases not investigated (Content equals... warn)

This commit is contained in:
Vladimir Krivosheev
2018-03-14 17:31:42 +01:00
parent 50e70e9e36
commit b8632fad0d
@@ -193,7 +193,7 @@ internal fun writeFile(file: Path?, requestor: Any, virtualFile: VirtualFile?, e
if ((LOG.isDebugEnabled || ApplicationManager.getApplication().isUnitTestMode) && !FileUtilRt.isTooLarge(result.length)) {
val content = element.toBufferExposingByteArray(lineSeparator.separatorString)
if (isEqualContent(result, lineSeparator, content, prependXmlProlog)) {
LOG.error("Content equals, but it must be handled not on this level: file ${result.name}, content\n${content.toByteArray().toString(StandardCharsets.UTF_8)}")
LOG.warn("Content equals, but it must be handled not on this level: file ${result.name}, content\n${content.toByteArray().toString(StandardCharsets.UTF_8)}")
}
else if (DEBUG_LOG != null && ApplicationManager.getApplication().isUnitTestMode) {
DEBUG_LOG = "${result.path}:\n$content\nOld Content:\n${LoadTextUtil.loadText(result)}"