mirror of
https://github.com/Luzifer/badge-gen.git
synced 2024-11-08 21:30:02 +00:00
add startup log output
This commit is contained in:
parent
a33de09449
commit
d3f73fbc26
1 changed files with 3 additions and 0 deletions
3
app.go
3
app.go
|
@ -84,6 +84,8 @@ func main() {
|
||||||
cfg.Listen = fmt.Sprintf(":%d", cfg.Port)
|
cfg.Listen = fmt.Sprintf(":%d", cfg.Port)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.Printf("badge-gen %s started...", version)
|
||||||
|
|
||||||
var err error
|
var err error
|
||||||
cacheStore, err = cache.GetCacheByURI(cfg.Cache)
|
cacheStore, err = cache.GetCacheByURI(cfg.Cache)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -95,6 +97,7 @@ func main() {
|
||||||
if err := yaml.Unmarshal(rawConfig, &configStore); err != nil {
|
if err := yaml.Unmarshal(rawConfig, &configStore); err != nil {
|
||||||
log.Fatalf("Unable to parse config: %s", err)
|
log.Fatalf("Unable to parse config: %s", err)
|
||||||
}
|
}
|
||||||
|
log.Printf("Loaded %d value pairs into configuration store", len(configStore))
|
||||||
}
|
}
|
||||||
|
|
||||||
r := mux.NewRouter()
|
r := mux.NewRouter()
|
||||||
|
|
Loading…
Reference in a new issue