Skip to content

Commit

Permalink
Do not print warn log when Tsfile UNENCRYPTED (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
HTHou authored Oct 25, 2024
1 parent 1e344e8 commit e4fe355
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
/** encrypt data according to tsfileconfig. */
public interface IEncryptor {

static final Logger logger = LoggerFactory.getLogger(IEncryptor.class);
Logger logger = LoggerFactory.getLogger(IEncryptor.class);

static IEncryptor getEncryptor(String name, byte[] key) {
return getEncryptor(EncryptionType.valueOf(name), key);
Expand All @@ -56,6 +56,8 @@ static IEncryptor getEncryptor(EncryptionType name, byte[] key) {
return new SM4128Encryptor(key);
case AES128:
return new AES128Encryptor(key);
case UNENCRYPTED:
return new NoEncryptor();
default:
// log a warning
logger.warn("Unknown encryption type: {}", name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
package org.apache.tsfile.file.metadata.enums;

public enum EncryptionType {
/** Do not comprocess. */
/** UNENCRYPTED. */
UNENCRYPTED("UNENCRYPTED", (byte) 0),

/** SM4128. */
Expand Down

0 comments on commit e4fe355

Please sign in to comment.