From d00ba70f943bb5de7af928ad35b3036f8c53bd9b Mon Sep 17 00:00:00 2001 From: Jamie Holdstock Date: Fri, 24 Feb 2023 14:55:25 +0000 Subject: [PATCH] vspd: Fix invalid default config log level. (#371) * vspd: Fix invalid default config log level. slog.LevelDebug.String() returns "DBG" which is not valid per the config validation rules specified below. Hard-code "debug" instead. * Update year. --- LICENSE | 2 +- cmd/vspd/config.go | 2 +- webapi/templates/footer.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/LICENSE b/LICENSE index bb5a40d..075bc03 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ ISC License -Copyright (c) 2020-2022 The Decred developers +Copyright (c) 2020-2023 The Decred developers Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above diff --git a/cmd/vspd/config.go b/cmd/vspd/config.go index aecedba..d156b5e 100644 --- a/cmd/vspd/config.go +++ b/cmd/vspd/config.go @@ -28,7 +28,7 @@ const appName = "vspd" var ( defaultListen = ":8800" - defaultLogLevel = slog.LevelDebug.String() + defaultLogLevel = "debug" defaultMaxLogSize = int64(10) defaultLogsToKeep = 20 defaultVSPFee = 3.0 diff --git a/webapi/templates/footer.html b/webapi/templates/footer.html index cc65586..505a2cd 100644 --- a/webapi/templates/footer.html +++ b/webapi/templates/footer.html @@ -15,7 +15,7 @@