From bd70655cb3ae11813a4affb69b5bee9d5902dda9 Mon Sep 17 00:00:00 2001
From: Sean Young <sean.young@monax.io>
Date: Thu, 21 Jun 2018 14:46:37 +0100
Subject: [PATCH] Everything after the first argument is key-value pairs, so
 two arguments are needed

{"/home/sean/go/src/github.com/hyperledger/burrow/cmd/burrow/.keys/data/D0E535B30D2DE3AEC591F5D03E3D5DF5E0536936.json":"(MISSING)","component":"keys","log_channel":"Info","message":"file should be accessible by user only","run_id":"eaa9871a-7557-11e8-84bd-968f9588dc8f","scope":"NewKeyStore"}

Signed-off-by: Sean Young <sean.young@monax.io>
---
 keys/key_store.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/keys/key_store.go b/keys/key_store.go
index 9da69b3f..bc29fb64 100644
--- a/keys/key_store.go
+++ b/keys/key_store.go
@@ -322,7 +322,7 @@ func (ks *KeyStore) GetKeyFile(dataDirPath string, keyAddr []byte) (fileContent
 		return nil, err
 	}
 	if (uint32(fileInfo.Mode()) & 0077) != 0 {
-		ks.logger.InfoMsg("file should be accessible by user only", filename)
+		ks.logger.InfoMsg("file should be accessible by user only", "file", filename)
 		if !ks.AllowBadFilePermissions {
 			return nil, fmt.Errorf("file %s should be accessible by user only", filename)
 		}
-- 
GitLab