Better logging for scheduler exceptions

This commit is contained in:
Ashwin Giridharan 2021-07-29 10:35:43 -07:00
parent b98db8c1ce
commit 5857551edb

View file

@ -371,10 +371,8 @@ public class Scheduler implements Runnable {
leaderElectedPeriodicShardSyncManager.start();
streamSyncWatch.start();
isDone = true;
} catch (LeasingException e) {
log.error("Caught exception when initializing LeaseCoordinator", e);
lastException = e;
} catch (Exception e) {
log.error("Caught exception when initializing LeaseCoordinator", e);
lastException = e;
}