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

Add additional logging to track mesh clients interacting with Namerd #2277

Closed
wants to merge 7 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add additional logging for k8s events
Signed-off-by: Dennis Adjei-Baah <[email protected]>
  • Loading branch information
Dennis Adjei-Baah committed May 23, 2019
commit bee6dbb10cab867a30d05ace56f89bd9e8eb8e2b
5 changes: 4 additions & 1 deletion k8s/src/main/scala/io/buoyant/k8s/Watchable.scala
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,10 @@ private[k8s] abstract class Watchable[O <: KubeObject: TypeReference, W <: Watch

case Some((event, ws)) =>
import Ordering.Implicits._
watchState.foreach(_.recordStreamData(event))
watchState.foreach { state =>
state.recordStreamData(event)
log.trace("k8s event on '%s' received '%s", watchPath, event)
}
// Register the update only if its resource version is larger than or equal to the largest version
// seen so far.
if (largestEvent.forall(_ <= event)) {
Expand Down