Commit 8aaf7d9
committed
Log all errors from cache.GetInformer call
Currently, `kind.Start` prints the last error from the polling process,
except for the NoKindMatchError. This behavior makes it users hard to
debug the cause of the `getInformer` call failure since it always
returns the context timeout error, which is the last error while
polling.
This commit logs all returned errors while calling `getInformer` in the
polling process.
Signed-off-by: Sunghoon Kang <[email protected]>1 parent adc9fa9 commit 8aaf7d9
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
136 | | - | |
| 137 | + | |
| 138 | + | |
137 | 139 | | |
138 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
139 | 145 | | |
140 | 146 | | |
141 | 147 | | |
| |||
0 commit comments