fixed problem with exit_code parameter on logs