mirror of
https://github.com/status-im/nim-codex.git
synced 2025-01-09 18:36:29 +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.
9 lines
308 B
Nim
9 lines
308 B
Nim
--path:".."
|
|
--threads:on
|
|
--tlsEmulation:off
|
|
|
|
when not defined(chronicles_log_level):
|
|
--define:"chronicles_log_level:NONE" # compile all log statements
|
|
--define:"chronicles_sinks:textlines[dynamic]" # allow logs to be filtered at runtime
|
|
--"import":"logging" # ensure that logging is ignored at runtime
|