private RedisResponseException CreateResponseError(string error) { HadExceptions = true; var throwEx = new RedisResponseException( string.Format("{0}, sPort: {1}, LastCommand: {2}", error, clientPort, lastCommand)); log.Error(throwEx.Message); throw throwEx; }
private RedisResponseException CreateResponseError(string error) { DeactivatedAt = DateTime.UtcNow; string safeLastCommand = string.IsNullOrEmpty(Password) ? lastCommand : (lastCommand ?? "").Replace(Password, ""); var throwEx = new RedisResponseException( string.Format("{0}, sPort: {1}, LastCommand: {2}", error, clientPort, safeLastCommand)); log.Error(throwEx.Message); throw throwEx; }
private RedisResponseException CreateResponseError(string error) { HadExceptions = true; string safeLastCommand = (Password == null) ? lastCommand : lastCommand.Replace(Password, ""); var throwEx = new RedisResponseException( string.Format("{0}, sPort: {1}, LastCommand: {2}", error, clientPort, safeLastCommand)); log.Error(throwEx.Message); throw throwEx; }
private RedisResponseException CreateResponseError(string error) { DeactivatedAt = DateTime.UtcNow; if (RedisConfig.EnableVerboseLogging) { var safeLastCommand = string.IsNullOrEmpty(Password) ? lastCommand : (lastCommand ?? "").Replace(Password, ""); if (!string.IsNullOrEmpty(safeLastCommand)) { error = $"{error}, LastCommand:'{safeLastCommand}', srcPort:{clientPort}"; } } var throwEx = new RedisResponseException(error); logError(error); return(throwEx); }
private RedisResponseException CreateResponseError(string error) { DeactivatedAt = DateTime.UtcNow; if (!RedisConfig.DisableVerboseLogging) { var safeLastCommand = string.IsNullOrEmpty(Password) ? lastCommand : (lastCommand ?? "").Replace(Password, ""); if (!string.IsNullOrEmpty(safeLastCommand)) { error = string.Format("{0}, LastCommand:'{1}', srcPort:{2}", error, safeLastCommand, clientPort); } } var throwEx = new RedisResponseException(error); log.Error(error); return(throwEx); }
private RedisResponseException CreateResponseError(string error) { HadExceptions = true; var throwEx = new RedisResponseException( string.Format("{0}, sPort: {1}, LastCommand: {2}", error, clientPort, lastCommand)); log.Error(throwEx.Message); throw throwEx; }
private RedisResponseException CreateResponseError(string error) { HadExceptions = true; string safeLastCommand = string.IsNullOrEmpty(Password) ? lastCommand : (lastCommand ?? "").Replace(Password, ""); var throwEx = new RedisResponseException( string.Format("{0}, sPort: {1}, LastCommand: {2}", error, clientPort, safeLastCommand)); log.Error(throwEx.Message); throw throwEx; }