Skip to content

Commit b28d457

Browse files
committed
Fixed issue with live logging
1 parent d3719be commit b28d457

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/EventLogExpert.Eventing/Readers/EventLogWatcher.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ private void ProcessNewEvents(object? state, bool timedOut)
101101
@event = new EventRecord { RecordId = null, Error = ex.Message };
102102
}
103103

104+
@event.PathName = path;
105+
104106
EventRecordWritten?.Invoke(this, @event);
105107
}
106108
} while (success);

src/EventLogExpert.UI/Store/EventLog/EventLogEffects.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ private static ImmutableDictionary<string, EventLogData> DistributeEventsToManyL
250250
{
251251
var newEventsForThisLog = eventsToDistribute.Where(e => e.OwningLog == log.Name);
252252

253-
if (newEventsForThisLog.Any()) { continue; }
253+
if (!newEventsForThisLog.Any()) { continue; }
254254

255255
var newLogData = AddEventsToOneLog(log, newEventsForThisLog);
256256
newLogs = newLogs.Remove(log.Name).Add(log.Name, newLogData);

0 commit comments

Comments
 (0)