Skip to content

Commit

Permalink
squash: fix querylog test
Browse files Browse the repository at this point in the history
  • Loading branch information
ThinkChaos committed Aug 30, 2024
1 parent d29cb66 commit 986f711
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion querylog/logger_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func LogEntryFields(entry *LogEntry) logrus.Fields {
"question_type": entry.QuestionType,
"answer": entry.Answer,
"duration_ms": entry.DurationMs,
"blocky_instance": entry.BlockyInstance,
"instance": entry.BlockyInstance,
})
}

Expand Down
1 change: 0 additions & 1 deletion querylog/logger_writer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ var _ = Describe("LoggerWriter", func() {
Expect(fields).Should(HaveKeyWithValue("duration_ms", entry.DurationMs))
Expect(fields).Should(HaveKeyWithValue("question_type", entry.QuestionType))
Expect(fields).Should(HaveKeyWithValue("response_code", entry.ResponseCode))
Expect(fields).Should(HaveKey("hostname"))

Expect(fields).ShouldNot(HaveKey("client_names"))
Expect(fields).ShouldNot(HaveKey("question_name"))
Expand Down

0 comments on commit 986f711

Please sign in to comment.