private RedisRetryableException CreateRetryableResponseError(string error) { string safeLastCommand = string.IsNullOrEmpty(Password) ? lastCommand : (lastCommand ?? "").Replace(Password, ""); var throwEx = new RedisRetryableException( string.Format("{0}, sPort: {1}, LastCommand: {2}", error, clientPort, safeLastCommand)); log.Error(throwEx.Message); throw throwEx; }
private RedisRetryableException CreateRetryableResponseError(string error) { string safeLastCommand = string.IsNullOrEmpty(Password) ? lastCommand : (lastCommand ?? "").Replace(Password, ""); var throwEx = new RedisRetryableException(string.Format("[{0}] {1}, sPort: {2}, LastCommand: {3}", DateTime.UtcNow.ToString("HH:mm:ss.fff"), error, clientPort, safeLastCommand)); log.Error(throwEx.Message); throw throwEx; }