Fixed message printing to log - added cast to integer