[fix](log) use logger to replace printStackTrace() (#17382)

Use Logger to replace printStackTrace to better locate problems.
This commit is contained in:
WenYao
2023-03-03 14:51:30 +08:00
committed by GitHub
parent cc5fa509ad
commit b5b595519a
27 changed files with 84 additions and 63 deletions

View File

@ -175,7 +175,7 @@ public class Text implements Writable {
return -1; // not found
} catch (CharacterCodingException e) {
// can't get here
e.printStackTrace();
LOG.warn("", e);
return -1;
}
}