Skip to content

Commit

Permalink
Debug logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tkael committed Mar 18, 2024
1 parent f181903 commit 16ea50a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion JournalMonitor/JournalMonitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public static List<Event> ParseJournalEntry(string line, bool fromLogLoad = fals
Match match = JsonRegex.Match(line);
if (match.Success)
{
Logging.Debug("Received event", line);
Logging.Debug($"Received event: {line}");
IDictionary<string, object> data = Deserializtion.DeserializeData(line);

// Ignore specified log load events
Expand Down
2 changes: 2 additions & 0 deletions SpeechResponder/SpeechResponder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ public void Handle(Event @event)
// Simulate a forced shutdown effect affecting the speech responder until the ship's system is rebooted
if ( @event is ShipShutdownEvent )
{
Logging.Debug("Stopping speech during ship shutdown.");
if ( EDDI.Instance.State.TryGetValue( "speechresponder_quiet", out var stateObj ) )
{
speechresponder_quiet_was = stateObj as bool?;
Expand All @@ -287,6 +288,7 @@ public void Handle(Event @event)
}
else if ( @event is ShipShutdownRebootEvent )
{
Logging.Debug( "Restoring speech after ship shutdown." );
EDDI.Instance.State[ "speechresponder_quiet" ] = speechresponder_quiet_was;
}

Expand Down

0 comments on commit 16ea50a

Please sign in to comment.