Skip to content

Commit

Permalink
fix logging disable check
Browse files Browse the repository at this point in the history
  • Loading branch information
ShreyashKore committed Oct 28, 2024
1 parent 4c12e21 commit c2b1217
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ public val Inspektor: ClientPlugin<InspektorConfig> = createClientPlugin(
}

private inline fun ClientPluginBuilder<InspektorConfig>.shouldNotLog(attributes: Attributes): Boolean {
return pluginConfig.level == LogLevel.NONE && attributes.contains(DisableLogging)
return pluginConfig.level == LogLevel.NONE || attributes.contains(DisableLogging)
}

internal fun Matcher.matches(request: HttpRequestBuilder): Boolean {
Expand Down

0 comments on commit c2b1217

Please sign in to comment.