This repository was archived by the owner on Jul 22, 2025. It is now read-only.
Commit 3da9c5c
committed
refactor(postgres): inject logger dependency into client
Modifies the HtDataPostgresClient to accept a Logger instance via its constructor instead of creating one internally.
This change improves testability by allowing mock loggers to be injected and follows the Dependency Inversion Principle, giving the consumer full control over logger configuration and hierarchy.1 parent 3945a3c commit 3da9c5c
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | | - | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
0 commit comments