Skip to content

Commit c22e2ff

Browse files
committed
Showing warning when encryption does not happen
1 parent 3e28327 commit c22e2ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/cipher.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ function encryptIV(rawData) {
1818
}
1919

2020
if (!PASSWORD) {
21-
return rawData;
21+
console.log('Encryption will be skipped as ELASTICIO_MESSAGE_CRYPTO_PASSWORD env is empty');
22+
return new Buffer.from(rawData);
2223
}
2324

2425
if (!VECTOR) {

0 commit comments

Comments
 (0)