Skip to content

Commit

Permalink
Bump version 0.9.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Broer committed Oct 16, 2015
1 parent 037fcd2 commit 67149ef
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
)

// var Version string
const Version = "0.9.4"
const Version = "0.9.5"

var (
nameservers = []string{}
Expand All @@ -39,7 +39,6 @@ var (
var exitErr error

func init() {
log.SetFormatter(&log.TextFormatter{DisableTimestamp: true})
log.SetOutput(os.Stderr)
}

Expand Down Expand Up @@ -149,12 +148,15 @@ func main() {
}

if c.Bool("syslog") {
hook, err := logrus_syslog.NewSyslogHook("", "", syslog.LOG_LOCAL0|syslog.LOG_INFO, "go-dnsmasq")
log.SetFormatter(&log.TextFormatter{DisableTimestamp: true, DisableColors: true})
hook, err := logrus_syslog.NewSyslogHook("", "", syslog.LOG_DAEMON|syslog.LOG_INFO, "go-dnsmasq")
if err != nil {
log.Error("Unable to connect to local syslog daemon")
} else {
log.AddHook(hook)
}
} else {
log.SetFormatter(&log.TextFormatter{DisableTimestamp: true})
}

if ns := c.String("nameservers"); ns != "" {
Expand Down

0 comments on commit 67149ef

Please sign in to comment.