mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-01-09 04:32:05 +00:00
086b5c3914
* [build] fix: ignore logging when running singular tests Ensures that logging is ignored at runtime when running individual tests using `nim c -r tests/...` * [build] Allow tests to be run with -d:chronicles_log_level When running tests with chronicles_log_level set, do not hide the the logs.
10 lines
189 B
Nim
10 lines
189 B
Nim
import pkg/chronicles
|
|
|
|
proc ignoreLogging(level: LogLevel, message: LogOutputStr) =
|
|
discard
|
|
|
|
defaultChroniclesStream.output.writer = ignoreLogging
|
|
|
|
{.warning[UnusedImport]:off.}
|
|
{.used.}
|