log-json: true

This commit is contained in:
callebtc
2022-08-03 18:04:54 +02:00
parent 7a3ef69b11
commit d9dc022cd3
2 changed files with 3 additions and 3 deletions

View File

@@ -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 == "" {

View File

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