Skip to content

Commit b674ff2

Browse files
authored
Merge pull request #21607 from abpframework/EfCoreRuntimeDatabaseMigratorBase
Output full exception stack to logs.
2 parents 0d72176 + 45384eb commit b674ff2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

framework/src/Volo.Abp.EntityFrameworkCore/Volo/Abp/EntityFrameworkCore/Migrations/EfCoreRuntimeDatabaseMigratorBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ protected virtual async Task TryAsync(Func<Task> task, int maxTryCount = 3)
135135
throw;
136136
}
137137

138-
Logger.LogWarning($"{ex.GetType().Name} has been thrown. The operation will be tried {maxTryCount} times more. Exception:\n{ex.Message}. Stack Trace:\n{ex.StackTrace}");
138+
Logger.LogWarning(ex, $"{ex.GetType().Name} has been thrown. The operation will be tried {maxTryCount} times more.");
139139

140140
await Task.Delay(RandomHelper.GetRandom(MinValueToWaitOnFailure, MaxValueToWaitOnFailure));
141141

0 commit comments

Comments
 (0)