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
commit 3b24b1196d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 92 additions and 43 deletions

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:

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,