Fix minor bugs: log file close, typo, JSON field consistency
- Add defer logfile.Close() to prevent file descriptor leak - Fix typo 'Incomming' -> 'Incoming' in log message - Change JSON tag 'Misc' to 'misc' for consistency with sMsg
This commit is contained in:
@@ -21,7 +21,7 @@ func MsgParser(ctx context.Context, msg string) {
|
||||
j rMsg
|
||||
)
|
||||
|
||||
log.Debugf("Incomming raw json: %s", msg)
|
||||
log.Debugf("Incoming raw json: %s", msg)
|
||||
|
||||
if err := json.Unmarshal([]byte(msg), &j); err != nil {
|
||||
log.Warnf("Unable to to parse message from redis channel: %s", err)
|
||||
|
||||
Reference in New Issue
Block a user