improved time format (include seconds)
This commit is contained in:
parent
fda6a98f79
commit
c32f2abcb1
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user