chore(shadow): log source read root causes
This commit is contained in:
@@ -138,6 +138,10 @@ public final class Ft546ShadowScheduler implements AutoCloseable {
|
|||||||
LOGGER.warn("FT546 shadow source read failed: {}; retry after {} ms",
|
LOGGER.warn("FT546 shadow source read failed: {}; retry after {} ms",
|
||||||
readFailure.getReasonCode(),
|
readFailure.getReasonCode(),
|
||||||
readFailure.getRetryAfter().toMillis());
|
readFailure.getRetryAfter().toMillis());
|
||||||
|
if (readFailure.getCause() != null) {
|
||||||
|
LOGGER.warn("FT546 shadow source read root cause",
|
||||||
|
readFailure.getCause());
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (failure instanceof Error) {
|
if (failure instanceof Error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user