Skip to content

Commit

Permalink
Adding leader and not being leader logging on the overlord. (#17519)
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptoe authored Dec 3, 2024
1 parent 9ef46fc commit 0eb8d73
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public void becomeLeader()
giant.lock();

// I AM THE MASTER OF THE UNIVERSE.
log.info("By the power of Grayskull, I have the power!");
log.info("By the power of Grayskull, I have the power. I am the leader");

try {
final TaskRunner taskRunner = runnerFactory.build();
Expand Down Expand Up @@ -193,6 +193,7 @@ public void stopBeingLeader()
giant.lock();
try {
initialized = false;
log.info("I am no longer the leader...");
final Lifecycle leaderLifecycle = leaderLifecycleRef.getAndSet(null);

if (leaderLifecycle != null) {
Expand Down

0 comments on commit 0eb8d73

Please sign in to comment.