mirror of
https://github.com/vxcontrol/soldr-modules.git
synced 2026-07-18 18:44:30 -04:00
[PR #40] [MERGED] Suppress debug output by default in the tests #39
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/vxcontrol/soldr-modules/pull/40
Author: @souz9
Created: 1/10/2023
Status: ✅ Merged
Merged: 1/15/2023
Merged by: @asdek
Base:
master← Head:tests-suppress-debug📝 Commits (2)
2cac2b0Suppress debug output by default in the testsd0de07cSimplify log_level usage📊 Changes
4 files changed (+1 additions, -4 deletions)
View changed files
📝
tests/file_remover_client_spec.lua(+0 -1)📝
tests/file_remover_server_spec.lua(+0 -1)📝
tests/proc_terminator_spec.lua(+0 -1)📝
utils/mock/core.lua(+1 -1)📄 Description
Description of the Change
Some of the tests use
LOG_LEVELenv variable to setup the logging level in tests. However unless LOG_LEVEL is setdebuglevel is used that makes difficult to read the output of the tests by default.The change removes
or "debug"expression, soerrorlog level will be used as default value (as it's declared inmock/core.lua).How to test the Change
To enable debug output:
Checklist:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.