fix(webconnectivity@v0.5): fetch HTTP only using system-resolver addrs (#935)

While there, change the emoji logger to emit whitespace on info logs. This makes warnings stand out even more.

Closes https://github.com/ooni/probe/issues/2258
This commit is contained in:
Simone Basso
2022-09-05 13:33:59 +02:00
committed by GitHub
parent a72a9284f1
commit 3b24b1196d
6 changed files with 92 additions and 43 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ func (h *Handler) HandleLog(e *log.Entry) (err error) {
case log.DebugLevel:
level = "🧐"
case log.InfoLevel:
level = "🗒️"
level = " "
case log.WarnLevel:
level = "🔥"
default:
+1 -1
View File
@@ -74,7 +74,7 @@ func TestLogHandlerHandleLog(t *testing.T) {
Name: "info level with emoji",
Emoji: true,
Level: log.InfoLevel,
ExpectSeverity: "🗒️",
ExpectSeverity: " ",
}, {
Name: "warn level with emoji",
Emoji: true,