Skip to content

Commit 9141cce

Browse files
authored
Fix exceptions being swallowed (#155)
1 parent 50e4f13 commit 9141cce

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

hoptimator-operator/src/main/java/com/linkedin/hoptimator/operator/Operator.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ public boolean isReady(String yaml) {
195195
return false;
196196
}
197197
} catch (Exception e) {
198+
log.error("Failed to check isReady {}/{}", kind, name, e);
198199
return false;
199200
}
200201
}
@@ -255,6 +256,7 @@ public boolean isFailed(String yaml) {
255256
return false;
256257
}
257258
} catch (Exception e) {
259+
log.error("Failed to check isFailed {}/{}", kind, name, e);
258260
return false;
259261
}
260262
}

hoptimator-operator/src/main/java/com/linkedin/hoptimator/operator/subscription/SubscriptionReconciler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ private boolean apply(String yaml, KubernetesObject owner) {
203203
try {
204204
operator.apply(yaml, owner);
205205
} catch (Exception e) {
206+
log.error("Failed to apply {}.", yaml, e);
206207
return false;
207208
}
208209
return true;

0 commit comments

Comments
 (0)