[Security/Http] fix mock logger in test
minor #13110 [Security/Http] fix mock logger in test (nicolas-grekas)

This PR was merged into the 2.7 branch.

Discussion
----------

[Security/Http] fix mock logger in test

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Commits
-------

4e544b9 [Security/Http] fix mock logger in test