Skip to content

Commit

Permalink
solution: improve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
splix committed Mar 27, 2021
1 parent 240a8b9 commit a26cc96
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/kotlin/io/emeraldpay/dshackle/upstream/Selector.kt
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ class Selector {
"ALLOF[" + matchers.joinToString(",") { it.describeInternal() } + "]"
}
}

override fun toString(): String {
return "Matcher: ${describeInternal()}"
}
}

class MethodMatcher(
Expand All @@ -138,6 +142,10 @@ class Selector {
override fun describeInternal(): String {
return "allow method $method"
}

override fun toString(): String {
return "Matcher: ${describeInternal()}"
}
}

abstract class LabelSelectorMatcher: Matcher {
Expand Down

0 comments on commit a26cc96

Please sign in to comment.