Skip to content

Commit 4ef4cc1

Browse files
committed
Minor adjustment to how we handle malformed journal entries - only log errors that we aren't handling / correcting
1 parent 278b3ed commit 4ef4cc1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

JournalMonitor/JournalMonitor.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5266,7 +5266,6 @@ dest.y is decimal sy &&
52665266
}
52675267
catch (JsonReaderException jre)
52685268
{
5269-
Logging.Debug(jre.Message, jre);
52705269
if ( line.Contains( @"""event"":""BackpackChange""" ) && line.Contains( @"] ""Removed""" ) )
52715270
{
52725271
// We've observed a missing comma in the `BackpackChange` event, fix that here.
@@ -5280,6 +5279,9 @@ dest.y is decimal sy &&
52805279
line = line.Replace( @""""": ""SquadronCarrier"",", @"""CarrierType"": ""SquadronCarrier""," );
52815280
return ParseJournalEntry( line, fromLogLoad );
52825281
}
5282+
5283+
// Only log json reader exceptions that we haven't handled above.
5284+
Logging.Error( jre.Message, jre );
52835285
}
52845286
catch (Exception ex)
52855287
{

0 commit comments

Comments
 (0)