Skip to content

Install test logger via ctor instead of per-test calls - #279

Merged
larsewi merged 1 commit into
masterfrom
test-logging-ctor
Jul 27, 2026
Merged

Install test logger via ctor instead of per-test calls#279
larsewi merged 1 commit into
masterfrom
test-logging-ctor

Conversation

@larsewi

@larsewi larsewi commented Jul 27, 2026

Copy link
Copy Markdown
Owner

Unit tests in src/ had no logger at all, so LEECH2_LOG produced no output for them. A #[ctor] constructor in each test binary installs it once.

Unit tests in src/ had no logger at all, so LEECH2_LOG produced no output
for them. A #[ctor] constructor in each test binary installs it once.

Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
@larsewi larsewi added the chore Internal change, excluded from release notes label Jul 27, 2026
@larsewi
larsewi merged commit 61d3ad3 into master Jul 27, 2026
8 checks passed
@larsewi
larsewi deleted the test-logging-ctor branch July 27, 2026 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Internal change, excluded from release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant