aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorFChannel <>2022-05-08 14:57:40 -0700
committerFChannel <>2022-06-19 12:53:29 -0700
commit580dec5b89215310ce34341e11ff17fe38bdb63a (patch)
tree894424df66a9d9f7e41805822f29adac8fb490fe /config
parentf7bf818d29393ceaccf4d2906557351fa6a4f49f (diff)
more cleanup, logging and error logging everywhere
things are mostly in place can work on "features" and polish
Diffstat (limited to 'config')
-rw-r--r--config/config.go3
1 files changed, 2 insertions, 1 deletions
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
}