Fix type() specifier bug in log