From e355ca8616f2db99fad45bdbab51d2f1761f845d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20G=C3=B3mez?= Date: Tue, 27 Jun 2023 11:48:26 +0200 Subject: [PATCH] Reduce info logs (#1087) --- .../java/com/spotify/styx/docker/KubernetesDockerRunner.java | 2 +- .../java/com/spotify/styx/state/PersistentStateManager.java | 2 +- .../src/main/java/com/spotify/styx/util/ShardedCounter.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/styx-scheduler-service/src/main/java/com/spotify/styx/docker/KubernetesDockerRunner.java b/styx-scheduler-service/src/main/java/com/spotify/styx/docker/KubernetesDockerRunner.java index 829930e25f..2d42919a17 100644 --- a/styx-scheduler-service/src/main/java/com/spotify/styx/docker/KubernetesDockerRunner.java +++ b/styx-scheduler-service/src/main/java/com/spotify/styx/docker/KubernetesDockerRunner.java @@ -684,7 +684,7 @@ private void logEvent(Watcher.Action action, Pod pod, String resourceVersion, .orElse("N/A"); final String status = readStatus(pod); - LOG.info("{}Pod event for {} ({}) at resource version {}, action: {}, workflow instance: {}, status: {}", + LOG.debug("{}Pod event for {} ({}) at resource version {}, action: {}, workflow instance: {}, status: {}", polled ? "Polled: " : "", podName, pod.getMetadata().getUid(), resourceVersion, action, workflowInstance, status); } diff --git a/styx-scheduler-service/src/main/java/com/spotify/styx/state/PersistentStateManager.java b/styx-scheduler-service/src/main/java/com/spotify/styx/state/PersistentStateManager.java index 2057107e89..c0b25cb091 100644 --- a/styx-scheduler-service/src/main/java/com/spotify/styx/state/PersistentStateManager.java +++ b/styx-scheduler-service/src/main/java/com/spotify/styx/state/PersistentStateManager.java @@ -137,7 +137,7 @@ private void tickInstance(WorkflowInstance instance) { } private void tickInstance(RunState state) { - log.info("Ticking instance: {}: #{} {}", state.workflowInstance(), state.counter(), state.state()); + log.debug("Ticking instance: {}: #{} {}", state.workflowInstance(), state.counter(), state.state()); try { outputHandler.transitionInto(state, this); } catch (StateTransitionConflictException e) { diff --git a/styx-service-common/src/main/java/com/spotify/styx/util/ShardedCounter.java b/styx-service-common/src/main/java/com/spotify/styx/util/ShardedCounter.java index 94b0f6b336..739c84c14f 100644 --- a/styx-service-common/src/main/java/com/spotify/styx/util/ShardedCounter.java +++ b/styx-service-common/src/main/java/com/spotify/styx/util/ShardedCounter.java @@ -292,7 +292,7 @@ void updateCounterShard(StorageTransaction transaction, String counterId, long d throw new CounterCapacityException(message); } final String operation = delta > 0 ? "increment" : "decrement"; - LOG.info("Updating counter shard ({}): {}-{}: capacity={}, value={}, delta={}, newValue={}", + LOG.debug("Updating counter shard ({}): {}-{}: capacity={}, value={}, delta={}, newValue={}", operation, counterId, shardIndex, shardCapacity, shard.get().value(), delta, newShardValue); } else { final String message =