Skip to content

Comments

[*] replace fmt.Println with t.Log in webserver tests#1218

Open
Makeepan-dev wants to merge 1 commit intocybertec-postgresql:masterfrom
Makeepan-dev:refactor/standardize-logging
Open

[*] replace fmt.Println with t.Log in webserver tests#1218
Makeepan-dev wants to merge 1 commit intocybertec-postgresql:masterfrom
Makeepan-dev:refactor/standardize-logging

Conversation

@Makeepan-dev
Copy link

Description

While reviewing the test suite, I noticed fmt.Println being used in internal/webserver/server_test.go. This pollutes the standard console output during test runs.

This PR replaces those instances with t.Log(), ensuring that test logs are only printed when a test fails or when the test suite is explicitly run with the verbose flag (-v).

Changes Made

  • Replaced fmt.Println with t.Log in server_test.go to conform to standard Go testing practices and keep CI logs clean.

@pashagolub pashagolub changed the title test: replace fmt.Println with t.Log in webserver tests [*] replace fmt.Println with t.Log in webserver tests Feb 22, 2026
@pashagolub pashagolub self-assigned this Feb 22, 2026
@pashagolub pashagolub added the test New test case or request label Feb 22, 2026
@pashagolub
Copy link
Collaborator

Thanks. Please fix the issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test New test case or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants