fix in error output
This commit is contained in:
@ -36,7 +36,7 @@ func (self *CommonHandler) GetId() string {
|
||||
}
|
||||
|
||||
func (self *CommonHandler) Lost(msg string, err error, message MessageT) {
|
||||
if err != nil {
|
||||
if err == nil {
|
||||
log.Printf("Error: %s, message %s is lost", msg, message)
|
||||
} else {
|
||||
log.Printf("Error: %s (%s), message %s is lost", msg, err, message)
|
||||
|
Reference in New Issue
Block a user