Skip to content

Commit eddf9b3

Browse files
authored
Fixed the issue of configuration being shared between multiple loggers with different configuration (#1021)
1 parent 7ba0de0 commit eddf9b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wrappers/obj-c/ODWLogConfiguration.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,8 @@ -(nullable ILogConfiguration*)getWrappedConfiguration
311311
+(nullable ODWLogConfiguration *)getLogConfigurationCopy
312312
{
313313
auto& config = LogManager::GetLogConfiguration();
314-
static ILogConfiguration configCopy(config);
315-
return [[ODWLogConfiguration alloc] initWithILogConfiguration: &configCopy];
314+
auto configCopy = new ILogConfiguration(config);
315+
return [[ODWLogConfiguration alloc] initWithILogConfiguration: configCopy];
316316
}
317317

318318
+(void)setEventCollectorUri:(nonnull NSString *)eventCollectorUri

0 commit comments

Comments
 (0)