This is an automated email from the ASF dual-hosted git repository.
jiangtian pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/tsfile.git
The following commit(s) were added to refs/heads/develop by this push:
new 0579fc7c delete log error when encryptKeyPath is empty (#334)
0579fc7c is described below
commit 0579fc7c405260bf4ffa1b8c5cd425023d9197e6
Author: jintao zhu <[email protected]>
AuthorDate: Fri Dec 13 10:11:53 2024 +0800
delete log error when encryptKeyPath is empty (#334)
---
java/tsfile/src/main/java/org/apache/tsfile/encrypt/EncryptUtils.java | 2 --
1 file changed, 2 deletions(-)
diff --git
a/java/tsfile/src/main/java/org/apache/tsfile/encrypt/EncryptUtils.java
b/java/tsfile/src/main/java/org/apache/tsfile/encrypt/EncryptUtils.java
index 86e86341..6b9fc4ca 100644
--- a/java/tsfile/src/main/java/org/apache/tsfile/encrypt/EncryptUtils.java
+++ b/java/tsfile/src/main/java/org/apache/tsfile/encrypt/EncryptUtils.java
@@ -59,11 +59,9 @@ public class EncryptUtils {
public static String getEncryptKeyFromPath(String path) {
if (path == null) {
- logger.error("encrypt key path is null, use the default key");
return defaultKey;
}
if (path.isEmpty()) {
- logger.error("encrypt key path is empty, use the default key");
return defaultKey;
}
try (BufferedReader br = new BufferedReader(new FileReader(path))) {