logger: Fix extraneous blank lines

Resolves #178 (closed)

Fixes extra blank lines being printed when a SoupLogger is added to a SoupSession with SOUP_LOGGER_LEVEL_NONE.

Moves the printing to print_request and print_response so that the blank is only added when the request or response is actually logged.

The blank line is only printed when no custom printing function is configured. The printer could print anywhere (or nowhere) after all.

Merge request reports

Loading