Skip to content

Commit

Permalink
Document logger flags
Browse files Browse the repository at this point in the history
  • Loading branch information
DSpeichert committed May 3, 2015
1 parent 75dfaf3 commit ad44b0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ How to run
* Parameter ```-l``` defines the local IP (interface) to listen on. Defaults to all.
* Parameter ```-r``` enable recursive querying of specified servers for answers godnsagent can't provide itself.
* Parameter ```-k``` sets the API key (passed as GET or form value "key" to http notification handlers)
* Parameter ```-lf``` sets the logger flags (integer): https://golang.org/pkg/log/#pkg-constants

```
./godnsagent -z https://example.org/path/to/zones.json -l 127.0.0.1 -r 8.8.8.8:53 -k secretkeyhere
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func main() {
flag.StringVar(&listenOn, "l", "", "The IP to listen on (default = blank = ALL)")
flag.StringVar(&recurseTo, "r", "", "Pass-through requests that we can't answer to other DNS server (address:port or empty=disabled)")
flag.StringVar(&apiKey, "k", "", "API key for http notifications")
flag.IntVar(&loggerFlags, "lf", 0, "logger flags")
flag.IntVar(&loggerFlags, "lf", log.LstdFlags, "logger flags")
flag.Parse()

// remove timestamps from log outputs (journald adds them)
Expand Down

0 comments on commit ad44b0a

Please sign in to comment.