🧚 A practical web framework for Gleam

Silence error log in tests

Changed files
+5 -2
test
+1 -1
manifest.toml
··· 31 31 gleam_json = { version = ">= 0.6.0 and < 2.0.0" } 32 32 gleam_stdlib = { version = ">= 0.29.0 and < 2.0.0" } 33 33 gleeunit = { version = "~> 1.0" } 34 - logging = { version = ">= 1.0.0 and < 2.0.0" } 34 + logging = { version = ">= 1.2.0 and < 2.0.0" } 35 35 marceau = { version = ">= 1.1.0 and < 2.0.0" } 36 36 mist = { version = ">= 1.2.0 and < 2.0.0" } 37 37 simplifile = { version = ">= 2.0.0 and < 3.0.0" }
+4 -1
test/wisp_test.gleam
··· 1 + import exception 1 2 import gleam/bit_array 2 3 import gleam/crypto 3 4 import gleam/dict ··· 333 334 } 334 335 335 336 pub fn rescue_crashes_error_test() { 336 - // TODO: Determine how to silence the logger for this test. 337 + wisp.set_logger_level(wisp.CriticalLevel) 338 + use <- exception.defer(fn() { wisp.set_logger_level(wisp.InfoLevel) }) 339 + 337 340 { 338 341 use <- wisp.rescue_crashes 339 342 panic as "we need to crash to test the middleware"