aboutsummaryrefslogtreecommitdiffstats
path: root/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'config.go')
-rw-r--r--config.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/config.go b/config.go
index 3ddf42a..0b09061 100644
--- a/config.go
+++ b/config.go
@@ -33,6 +33,7 @@ type config struct {
33 Ignore ignoreRules `json:"ignore"` 33 Ignore ignoreRules `json:"ignore"`
34 Port string `json:"port"` 34 Port string `json:"port"`
35 UserTokens map[string]userToken `json:"user_tokens"` 35 UserTokens map[string]userToken `json:"user_tokens"`
36 UserAgent string `json:"user_agent"`
36} 37}
37 38
38type ignoreRules struct { 39type ignoreRules struct {
@@ -46,6 +47,7 @@ func printConfig(cfg *config) {
46 log.Print("Loaded configuration: ") 47 log.Print("Loaded configuration: ")
47 log.Print(" Calendar URL: ", cfg.CalendarURL.v.String()) 48 log.Print(" Calendar URL: ", cfg.CalendarURL.v.String())
48 log.Print(" HTTP Port: ", cfg.Port) 49 log.Print(" HTTP Port: ", cfg.Port)
50 log.Print(" User Agent: ", cfg.UserAgent)
49 log.Print(" Ignoring:") 51 log.Print(" Ignoring:")
50 for _, entry := range cfg.Ignore.LocationRegexes { 52 for _, entry := range cfg.Ignore.LocationRegexes {
51 log.Printf(" Events with locations matching %s", entry.String()) 53 log.Printf(" Events with locations matching %s", entry.String())