Skip to content

Commit 32c57d6

Browse files
Improve logging (#1230)
Improve logging
1 parent 278b318 commit 32c57d6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/coverlet.core/Coverage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public CoveragePrepareResult PrepareModules()
141141
}
142142
catch (Exception ex)
143143
{
144-
_logger.LogWarning($"Unable to instrument module: {module} because : {ex.Message}");
144+
_logger.LogWarning($"Unable to instrument module: {module}\n{ex}");
145145
_instrumentationHelper.RestoreOriginalModule(module, _identifier);
146146
}
147147
}

src/coverlet.core/Instrumentation/Instrumenter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public bool CanInstrument()
123123
}
124124
catch (Exception ex)
125125
{
126-
_logger.LogWarning($"Unable to instrument module: '{_module}' because : {ex.Message}");
126+
_logger.LogWarning($"Unable to instrument module: '{_module}'\n{ex}");
127127
return false;
128128
}
129129
}

0 commit comments

Comments
 (0)