use fmt.Println instead of log.Printf

* move if statement conditions to a single line. not sure if go-thonic