Skip to content

Commit 2df8bd7

Browse files
committed
misc: improve log messages for safe mode
1 parent 3ff5881 commit 2df8bd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Stryker.Core/Stryker.Core/Compiling/CSharpRollbackProcess.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,12 +252,12 @@ private Collection<SyntaxNode> ScanForSuspiciousMutations(Diagnostic[] diagnosti
252252
// we have to remove every mutation
253253
var errorLocation = diagnostic.Location.GetMappedLineSpan();
254254
Logger.LogWarning(
255-
"Stryker.NET encountered a compile error in {Path} (at {Line}:{StartCharacter}) with id: {DiagnosticId}, message: {Message} (Source code: {BrokenMutation})",
255+
"An unidentified mutation in {Path} resulted in a compile error (at {Line}:{StartCharacter}) with id: {DiagnosticId}, message: {Message} (Source code: {BrokenMutation})",
256256
errorLocation.Path, errorLocation.StartLinePosition.Line, diagnostic.Id,
257257
errorLocation.StartLinePosition.Character, diagnostic.GetMessage(), brokenMutation);
258258

259259
Logger.LogInformation(
260-
"Safe Mode! Stryker will flag mutations in {DisplayName} as compile error.",
260+
"Safe Mode! Stryker will remove all mutations in {DisplayName} and mark them as 'compile error'.",
261261
DisplayName(initNode));
262262
// backup, remove all mutations in the node
263263
foreach (var mutant in scan.Where(mutant => !suspiciousMutations.Contains(mutant.Node)))

0 commit comments

Comments
 (0)