This is an automated email from the ASF dual-hosted git repository.
jiangtian pushed a commit to branch snapshot/1.2.0-241211
in repository https://gitbox.apache.org/repos/asf/tsfile.git
The following commit(s) were added to refs/heads/snapshot/1.2.0-241211 by this
push:
new 1819816c delete log error when encryptKeyPath is empty (#334)
1819816c is described below
commit 1819816cfa26fff1c1a52a2debe28f2f5eb049a8
Author: jintao zhu <[email protected]>
AuthorDate: Fri Dec 13 10:11:53 2024 +0800
delete log error when encryptKeyPath is empty (#334)
(cherry picked from commit 0579fc7c405260bf4ffa1b8c5cd425023d9197e6)
---
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))) {