mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
change level to warn until known cases not investigated (Content equals... warn)
This commit is contained in:
@@ -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)}"
|
||||
|
||||
Reference in New Issue
Block a user