🧚 A practical web framework for Gleam

Silence error log in tests

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