Skip to content

Commit bba5d81

Browse files
authored
add query to logging in shared queries exception (#2984)
On a failed migration test for the shared quieries, I missed the information about the query string in the log.
2 parents a0f7a82 + 3b35b34 commit bba5d81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MigrationTools.Clients.TfsObjectModel/Processors/TfsSharedQueryProcessor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ private void MigrateQuery(QueryHierarchy targetHierarchy, QueryDefinition query,
178178
catch (Exception ex)
179179
{
180180
_totalQueryFailed++;
181-
Log.LogDebug("Source Query: '{query}'");
182-
Log.LogDebug("Target Query: '{fixedQueryText}'");
181+
Log.LogDebug("Source Query: '{query}'", query);
182+
Log.LogDebug("Target Query: '{fixedQueryText}'", fixedQueryText);
183183
Log.LogError(ex, "Error saving query '{queryName}', probably due to invalid area or iteration paths", query.Name);
184184
targetHierarchy.Refresh(); // get the tree without the last edit
185185
}

0 commit comments

Comments
 (0)