fix log file name was -error.log because @params[name] is null