improved time format (include seconds)

This commit is contained in:
Stephen McQuay 2015-04-05 22:42:22 -07:00
parent fda6a98f79
commit c32f2abcb1
1 changed files with 6 additions and 1 deletions

View File

@ -66,7 +66,12 @@ func (u *user) Recv() {
close(u.quit) close(u.quit)
break break
} }
payload := fmt.Sprintf("%s | %s: %s", time.Now().Format("06-01-02 15:04"), u.name, msg) payload := fmt.Sprintf(
"%s | %s: %s",
time.Now().Format("06-01-02 15:04:05"),
u.name,
msg,
)
logs.Debug(payload) logs.Debug(payload)
u.chatter <- payload u.chatter <- payload
} }