Skip to content

Commit 5ea99db

Browse files
committed
Fix object reference null exception for diagnostic logging for bulkcopy
1 parent c4afd9c commit 5ea99db

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ResourceManager/DataLakeStore/Commands.DataLakeStore/DataPlaneModels/DataLakeStoreFileSystemClient.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,11 @@ public DataLakeStoreFileSystemClient(IAzureContext context, DataLakeStoreFileSys
9595
_isDebugEnabled = !debugPreference.Equals("SilentlyContinue");
9696
}
9797
}
98-
98+
99+
// Keep this outside if block because it is also used for diagnostic file loggind for BulkCopy
100+
_adlsLoggerConfig = new LoggingConfiguration();
99101
if (_isDebugEnabled)
100102
{
101-
_adlsLoggerConfig = new LoggingConfiguration();
102103
// Custom target that logs the debug messages from the SDK to the powershell framework's debug message queue
103104
var adlsTarget = new AdlsLoggerTarget
104105
{

0 commit comments

Comments
 (0)