diff --git a/rmap/map.go b/rmap/map.go index d52b4b0..3a62a59 100644 --- a/rmap/map.go +++ b/rmap/map.go @@ -496,7 +496,7 @@ func (sm *Map) run() { sm.logger.Debug("deleted", "key", key) default: sm.content[key] = val - sm.logger.Debug("set", key, val) + sm.logger.Debug("set", "key", key, "val", val) } select { case sm.ichan <- struct{}{}: diff --git a/rmap/map_test.go b/rmap/map_test.go index 2ac1aaf..ad36192 100644 --- a/rmap/map_test.go +++ b/rmap/map_test.go @@ -278,7 +278,7 @@ func TestLogs(t *testing.T) { // Check that the logs contain the expected messages assert.Contains(t, buf.String(), `joined`) - assert.Contains(t, buf.String(), `foo=bar`) + assert.Contains(t, buf.String(), `key=foo val=bar`) assert.Contains(t, buf.String(), `msg=deleted key=foo`) assert.Contains(t, buf.String(), `reset`) assert.Contains(t, buf.String(), `stopped`)