Skip to content

Simplify logger.Interface#1591

Merged
elezar merged 1 commit intoNVIDIA:mainfrom
elezar:cleanup-logger-interface
Jan 20, 2026
Merged

Simplify logger.Interface#1591
elezar merged 1 commit intoNVIDIA:mainfrom
elezar:cleanup-logger-interface

Conversation

@elezar
Copy link
Member

@elezar elezar commented Jan 19, 2026

This change removes the Info and Warning functions from the logger Interface and replaces their uses with calls to Infof and Warningf.

This serves to simplify the interface to make migrations to other logging APIs simpler in future.

This change removes the Info and Warning functions from
the logger Interface and replaces their uses with calls
to Infof and Warningf.

This serves to simplify the interface to make migrations to
other logging APIs simpler in future.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
@elezar elezar added this to the v1.19.0 milestone Jan 19, 2026
@elezar elezar requested a review from jgehrcke January 19, 2026 16:00
@coveralls
Copy link

Pull Request Test Coverage Report for Build 21143975887

Details

  • 2 of 9 (22.22%) changed or added relevant lines in 6 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.005%) to 36.842%

Changes Missing Coverage Covered Lines Changed/Added Lines %
cmd/nvidia-ctk-installer/toolkit/toolkit.go 2 3 66.67%
cmd/nvidia-ctk/cdi/generate/generate.go 0 1 0.0%
internal/edits/edits.go 0 1 0.0%
internal/runtime/logger.go 0 1 0.0%
pkg/nvcdi/full-gpu-nvml.go 0 1 0.0%
cmd/nvidia-ctk/system/create-dev-char-symlinks/create-dev-char-symlinks.go 0 2 0.0%
Totals Coverage Status
Change from base Build 21132355090: 0.005%
Covered Lines: 5257
Relevant Lines: 14269

💛 - Coveralls

Copy link
Collaborator

@jgehrcke jgehrcke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one for the log books 📚

@elezar elezar merged commit adbd102 into NVIDIA:main Jan 20, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants