solution: improve logging

This commit is contained in:
Igor Artamonov
2021-03-26 22:54:18 -04:00
parent 240a8b9a46
commit a26cc96ba6

View File

@@ -126,6 +126,10 @@ class Selector {
"ALLOF[" + matchers.joinToString(",") { it.describeInternal() } + "]" "ALLOF[" + matchers.joinToString(",") { it.describeInternal() } + "]"
} }
} }
override fun toString(): String {
return "Matcher: ${describeInternal()}"
}
} }
class MethodMatcher( class MethodMatcher(
@@ -138,6 +142,10 @@ class Selector {
override fun describeInternal(): String { override fun describeInternal(): String {
return "allow method $method" return "allow method $method"
} }
override fun toString(): String {
return "Matcher: ${describeInternal()}"
}
} }
abstract class LabelSelectorMatcher: Matcher { abstract class LabelSelectorMatcher: Matcher {