Fix a bug that all logs are treated as error logs