Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(logs): add more caching info #2675

Merged
merged 2 commits into from
Jun 1, 2018
Merged

fix(logs): add more caching info #2675

merged 2 commits into from
Jun 1, 2018

Conversation

emjburns
Copy link
Contributor

Adding more logs to help track down some clouddriver shenanigans.

@emjburns emjburns requested review from cfieber and ajordens May 31, 2018 17:41
@@ -102,7 +104,7 @@ public ClusteredAgentScheduler(RedisClientDelegate redisClientDelegate,
Set<String> skip = new HashSet<>(activeAgents.keySet());
Integer availableAgents = maxConcurrentAgents - skip.size();
if (availableAgents <= 0) {
logger.debug("Not acquiring more locks (activeAgents: " + skip.size() + " >= maxConcurrentAgents " + maxConcurrentAgents + ")");
logger.debug("Not acquiring more locks (activeAgents: " + skip.size() + " >= " + maxConcurrentAgents + "). Running agents: " + skip.stream().sorted().collect(Collectors.joining(",")));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets get this merged and pushed ...

as an aside, try and avoid lines < 120 characters ...

logger.debug(
  "Not acquiring more locks (activeAgents: {}, runningAgents: {})",
  skip.size(),
  skip.stream().sorted().collect(Collectors.joining(","))
)

^^ makes it easy to do for logs

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to all. Will make those changes!

@emjburns emjburns merged commit 0e44912 into spinnaker:master Jun 1, 2018
lwander pushed a commit to lwander/clouddriver that referenced this pull request Aug 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants