logging: Fix logging after introduction of the early check

The introduction of a 'if + do {} while' lead to not being able to
return the result of the logging anymore. Just return.
1 file changed