Debug output
This commit is contained in:
parent
b0cd2003f5
commit
9e16ac479a
4
main.go
4
main.go
@ -15,6 +15,7 @@ var (
|
||||
esMessagesType string
|
||||
add string
|
||||
email string
|
||||
debug bool
|
||||
)
|
||||
|
||||
// init ...
|
||||
@ -25,10 +26,13 @@ func init() {
|
||||
flag.StringVar(&esMessagesType, "estype", "post", "ES index type")
|
||||
flag.StringVar(&add, "add", "", "User to add")
|
||||
flag.StringVar(&email, "email", "", "User email address")
|
||||
flag.BoolVar(&debug, "debug", false, "Debug output")
|
||||
flag.Parse()
|
||||
|
||||
if debug {
|
||||
log.SetLevel(log.DebugLevel)
|
||||
}
|
||||
}
|
||||
|
||||
// main ...
|
||||
func main() {
|
||||
|
Loading…
Reference in New Issue
Block a user