Commit 87aa3a3
committed
fix: pass initialized logger to prom metric exporter
The prometheus metric exporter in the agent always got a `nil` logger.
It only logs in a very particular case, which would cause a nil panic.
This issue has been fixed, by initializing the logger before.1 parent a9817b2 commit 87aa3a3
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
122 | 123 | | |
123 | 124 | | |
124 | 125 | | |
| |||
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
| 133 | + | |
| 134 | + | |
132 | 135 | | |
133 | | - | |
134 | | - | |
135 | 136 | | |
| 137 | + | |
136 | 138 | | |
137 | 139 | | |
138 | 140 | | |
| |||
0 commit comments