Cast fixed in a call of log_msg_set_key_value_pair function