mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-05-04 03:48:40 +08:00
fix logging in PersistMessageDbContext
This commit is contained in:
parent
4901cee763
commit
482e26ec14
@ -62,11 +62,9 @@ public class PersistMessageDbContext : DbContext, IPersistMessageDbContext
|
|||||||
var databaseValues = await entry.GetDatabaseValuesAsync(cancellationToken);
|
var databaseValues = await entry.GetDatabaseValuesAsync(cancellationToken);
|
||||||
|
|
||||||
_logger.LogInformation(
|
_logger.LogInformation(
|
||||||
"Entry to entity with database-value: {DatabaseValues} and current-value: {CurrentValues}",
|
"Entry to entity with database-value: {@databaseValues} and current-value: {@currentValues}",
|
||||||
JsonConvert.SerializeObject(databaseValues,
|
databaseValues,
|
||||||
new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore }),
|
currentValues);
|
||||||
JsonConvert.SerializeObject(currentValues,
|
|
||||||
new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore }));
|
|
||||||
|
|
||||||
// Refresh the original values with current values
|
// Refresh the original values with current values
|
||||||
entry.OriginalValues.SetValues(currentValues);
|
entry.OriginalValues.SetValues(currentValues);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user