Skip to content

Commit

Permalink
Convert Helper.Out to allow for formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
fluofoxxo committed Nov 16, 2019
1 parent a9a2bc8 commit aeca995
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion helper/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ func (r *Helper) Respond(out []byte) {
func (r *Helper) RespondInsecure(out []byte) {
r.RespondRaw(out, "0", "")
}
func (r *Helper) Out(msg string) {
func (r *Helper) Out(s string, a ...interface{}) {
msg := fmt.Sprintf(s, a...)
log.Printf(LogOutBase, PrefixOut, r.CallerName, msg)
}
func (r *Helper) DebugOut(s string, a ...interface{}) {
Expand Down

0 comments on commit aeca995

Please sign in to comment.