1
0
Fork 0
mirror of https://github.com/Luzifer/badge-gen.git synced 2024-11-08 13:20:02 +00:00

add startup log output

This commit is contained in:
Knut Ahlers 2016-07-05 16:08:43 +02:00
parent a33de09449
commit d3f73fbc26
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

3
app.go
View file

@ -84,6 +84,8 @@ func main() {
cfg.Listen = fmt.Sprintf(":%d", cfg.Port)
}
log.Printf("badge-gen %s started...", version)
var err error
cacheStore, err = cache.GetCacheByURI(cfg.Cache)
if err != nil {
@ -95,6 +97,7 @@ func main() {
if err := yaml.Unmarshal(rawConfig, &configStore); err != nil {
log.Fatalf("Unable to parse config: %s", err)
}
log.Printf("Loaded %d value pairs into configuration store", len(configStore))
}
r := mux.NewRouter()