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 -----