From 580dec5b89215310ce34341e11ff17fe38bdb63a Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sun, 8 May 2022 14:57:40 -0700 Subject: more cleanup, logging and error logging everywhere things are mostly in place can work on "features" and polish --- config/config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config/config.go') diff --git a/config/config.go b/config/config.go index 16a1261..11f4792 100644 --- a/config/config.go +++ b/config/config.go @@ -31,6 +31,7 @@ var ActivityStreams = "application/ld+json; profile=\"https://www.w3.org/ns/acti var AuthReq = []string{"captcha", "email", "passphrase"} var PostCountPerPage = 10 var SupportedFiles = []string{"image/gif", "image/jpeg", "image/png", "image/webp", "image/apng", "video/mp4", "video/ogg", "video/webm", "audio/mpeg", "audio/ogg", "audio/wav", "audio/wave", "audio/x-wav"} +var Log = log.New(os.Stdout, "", log.Ltime) var MediaHashs = make(map[string]string) var Key string var Themes []string @@ -40,7 +41,7 @@ func GetConfigValue(value string, ifnone string) string { file, err := os.Open("config/config-init") if err != nil { - log.Print(err) + Log.Println(err) return ifnone } -- cgit v1.2.3