File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,8 @@ namespace Algolia.Search.Clients;
162
162
/// if you wish to leverage the transformation pipeline (via the *WithTransformation methods).
163
163
/// </summary >
164
164
/// <param name =" region" >The region ("us" or "eu")</param >
165
- public void SetTransformationRegion(string region)
165
+ /// <param name =" factory" >Logger factory</param >
166
+ public void SetTransformationRegion(string region, ILoggerFactory factory = null)
166
167
{
167
168
if (string.IsNullOrWhiteSpace(region))
168
169
{
@@ -175,10 +176,6 @@ namespace Algolia.Search.Clients;
175
176
throw new ArgumentException(" AppId and ApiKey are required for transformation pipeline" );
176
177
}
177
178
178
- var factory = _logger != null ?
179
- (_logger as ILogger<SearchClient >)?.Logger?.LoggerFactory :
180
- NullLoggerFactory.Instance;
181
-
182
179
_ingestionTransporter = new IngestionClient(
183
180
_transport._algoliaConfig.AppId,
184
181
_transport._algoliaConfig.ApiKey,
You can’t perform that action at this time.
0 commit comments