aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
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
}