Ok, solved with
(if-url-starts-with handler ["/api" "/websocket"] #(wrap-with-logger % {:redact-keys #{:user_token} :redact-value "******"})))