Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ private Result StartTransaction(TransactionAggregate transactionAggregate,
DateTime? start = null, end = null;

if (validationResult.Data.ResponseCode != TransactionResponseCode.Success) {
Logger.LogWarning($"Validation failed with ResponseCode {validationResult.Data.ResponseCode}: {validationResult.Data.ResponseMessage}");
Logger.LogInformation($"Validation failed with ResponseCode {validationResult.Data.ResponseCode}: {validationResult.Data.ResponseMessage}");
transactionAggregate.DeclineTransactionLocally(validationResult.Data.ResponseCode, validationResult.Data.ResponseMessage);
return (start, end);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ public virtual async Task<Result> SaveChangesWithDuplicateHandling(CancellationT
catch (UniqueConstraintException uex)
{
// Swallow the error
Logger.LogWarning(BuildUniqueConstraintExceptionLogMessage(uex));
Logger.LogInformation(BuildUniqueConstraintExceptionLogMessage(uex));
return Result.Success();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ public async Task<Result> Handle(IDomainEvent domainEvent,
return await this.MigrateDatabase((EstateDomainEvents.EstateCreatedEvent)domainEvent, cancellationToken);
}

Logger.LogWarning($"|{domainEvent.EventId}|State Projection Domain Event Handler - Inside Handle {domainEvent.EventType}");
Logger.LogInformation($"|{domainEvent.EventId}|State Projection Domain Event Handler - Inside Handle {domainEvent.EventType}");
Stopwatch sw = Stopwatch.StartNew();
Result result = await this.ProjectionHandler.Handle(domainEvent, cancellationToken);
sw.Stop();
Logger.LogWarning($"|{domainEvent.EventId}|State Projection Event Handler - after Handle {domainEvent.EventType} time {sw.ElapsedMilliseconds}ms");
Logger.LogInformation($"|{domainEvent.EventId}|State Projection Event Handler - after Handle {domainEvent.EventType} time {sw.ElapsedMilliseconds}ms");

return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public async Task<Result> Handle(IDomainEvent @event, CancellationToken cancella

builder.Insert(0, $"Total time: {stopwatch.ElapsedMilliseconds}ms|");

Logger.LogWarning(builder.ToString());
Logger.LogInformation(builder.ToString());
Logger.LogInformation($"{@event.EventId}|Event Type {@event.EventType} Id [{@event.EventId}] for state {state.GetType().Name} took {stopwatch.ElapsedMilliseconds}ms to process");

return Result.Success();
Expand Down
Loading