From d9dc022cd3ee2468a51c18df99c74fc2a43bfa84 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Wed, 3 Aug 2022 18:04:54 +0200 Subject: [PATCH] log-json: true --- config.go | 4 ++-- config.yaml.example | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config.go b/config.go index 5b4603a..a76445f 100644 --- a/config.go +++ b/config.go @@ -13,7 +13,7 @@ var Configuration = struct { MacaroonPath string `yaml:"macaroon_path"` TLSPath string `yaml:"tls-path"` Debug bool `yaml:"debug"` - LogMode string `yaml:"log-mode"` + LogJson bool `yaml:"log-json"` ChannelAllowlist []string `yaml:"channel-allowlist"` ChannelDenylist []string `yaml:"channel-denylist"` ChannelRejectMessage string `yaml:"channel-reject-message"` @@ -31,7 +31,7 @@ func init() { } func checkConfig() { - setLogger(Configuration.Debug, Configuration.LogMode == "json") + setLogger(Configuration.Debug, Configuration.LogJson) welcome() if Configuration.Host == "" { diff --git a/config.yaml.example b/config.yaml.example index e96b773..fe6b9c9 100644 --- a/config.yaml.example +++ b/config.yaml.example @@ -8,7 +8,7 @@ macaroon_path: "/home/bitcoin/.lnd/data/chain/bitcoin/mainnet/admin.macaroon" tls-path: "/home/bitcoin/.lnd/tls.cert" debug: true # to get only json output -# log-mode: "json" +# log-json: true # ----- Channel openings -----