From 01be7c65c4e0d6ba4207e7af29a094694df0d5dd Mon Sep 17 00:00:00 2001 From: okdistribute <633012+okdistribute@users.noreply.github.com> Date: Tue, 23 Jun 2020 15:13:40 -0700 Subject: [PATCH] fix: bugfix with logging when no encryption key --- src/background/mapeo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/background/mapeo.js b/src/background/mapeo.js index 705dca5f2..552e115d3 100644 --- a/src/background/mapeo.js +++ b/src/background/mapeo.js @@ -20,7 +20,7 @@ class MapeoRPC { this.storages = [] this.config = new Settings(userDataPath) this.encryptionKey = this.config.getEncryptionKey() - logger.info('got encryptionKey', this.encryptionKey.substr(0, 4)) + logger.info('got encryptionKey', this.encryptionKey && this.encryptionKey.substr(0, 4)) this.tiles = TileImporter(userDataPath) var feedsDir = path.join(datadir, 'storage')