Skip to content

Commit bfefc04

Browse files
authored
Merge pull request Azure#3424 from begoldsm/dev
Tracing fix for ADLS
2 parents 5fe64d0 + e66cc62 commit bfefc04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ResourceManager/DataLakeStore/Commands.DataLakeStore/Models/DataLakeStoreTracingInterceptor.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ public void ReceiveResponse(string invocationId, HttpResponseMessage response)
5757
var message = "{0}, invocationId={1}";
5858
if (response.IsSuccessStatusCode)
5959
{
60-
Logger.LogDebug(string.Format(message, response.ToLogMessage(), invocationId));
60+
Logger.LogDebug(message, response.ToLogMessage(), invocationId);
6161
}
6262
else
6363
{
64-
Logger.LogError(string.Format(message, response.ToLogMessage(true), invocationId));
64+
Logger.LogError(message, response.ToLogMessage(true), invocationId);
6565
}
6666
}
6767

@@ -74,7 +74,7 @@ public void TraceError(string invocationId, Exception exception)
7474
}
7575
else
7676
{
77-
Logger.LogError(string.Format("ADLS exception occured: {0}, with message: {1}, invocationId={1}"), adlException.Body.RemoteException, adlException.Body.RemoteException.Message, invocationId);
77+
Logger.LogError("ADLS exception occured: {0}, with message: {1}, invocationId={2}", adlException.Body.RemoteException, adlException.Body.RemoteException.Message, invocationId);
7878
}
7979
}
8080

0 commit comments

Comments
 (0)