Minor fix to log as error when error detected

Fixed some interchange actions that was not logged as error.
Moved code that breaks logging into acceptable length.

Signed-off-by: Fabrício Godoy <fgodoy@rodrimar.com.br>