|
@@ -17,6 +17,9 @@ import (
|
17
|
17
|
|
18
|
18
|
var log = loggo.GetLogger("main")
|
19
|
19
|
|
|
20
|
+var branch string
|
|
21
|
+var revision string
|
|
22
|
+
|
20
|
23
|
type IRCCat struct {
|
21
|
24
|
auth_channel string
|
22
|
25
|
channels mapset.Set
|
|
@@ -28,7 +31,7 @@ type IRCCat struct {
|
28
|
31
|
|
29
|
32
|
func main() {
|
30
|
33
|
loggo.ConfigureLoggers("<root>=DEBUG")
|
31
|
|
- log.Infof("IRCCat starting...")
|
|
34
|
+ log.Infof("IRCCat %s (%s) starting...", branch, revision)
|
32
|
35
|
viper.SetConfigName("irccat")
|
33
|
36
|
viper.AddConfigPath("/etc")
|
34
|
37
|
viper.AddConfigPath(".")
|