Fix error log level correctly