- Remove parentheses from log_message calls which were causing syntax errors - Add missing space in if statement condition check