From 4741ef8f8afd6766a3e220abe05e8712b1a57cc5 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Thu, 24 Jan 2019 15:24:46 +0100
Subject: [PATCH] refactor: log default padding decrypt

---
 lib/config/decrypt.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/config/decrypt.js b/lib/config/decrypt.js
index cd0f67c7b9..489c63a3b6 100644
--- a/lib/config/decrypt.js
+++ b/lib/config/decrypt.js
@@ -21,6 +21,7 @@ function decryptConfig(config, privateKey) {
               decryptedStr = crypto
                 .privateDecrypt(privateKey, Buffer.from(eVal, 'base64'))
                 .toString();
+              logger.info('Decrypted config using default padding');
             } catch (err) {
               logger.debug('Trying RSA_PKCS1_PADDING for ' + eKey);
               decryptedStr = crypto
-- 
GitLab