Skip to content

Commit

Permalink
add debugging message for now
Browse files Browse the repository at this point in the history
  • Loading branch information
jmacato committed Jun 25, 2024
1 parent 44e97f8 commit c1b6af5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Avalonia.FreeDesktop/DBusTrayIconImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,12 @@ private async void WatchAsync()
var nameOwner = await _dBus.GetNameOwnerAsync("org.kde.StatusNotifierWatcher");
OnNameChange("org.kde.StatusNotifierWatcher", nameOwner);
}
catch
catch(Exception e)
{
Console.WriteLine(e);
_serviceWatchDisposable = null;
Logger.TryGet(LogEventLevel.Error, "DBUS")
?.Log(this, "Interface 'org.kde.StatusNotifierWatcher' is unavailable.");
?.Log(this, $"Interface 'org.kde.StatusNotifierWatcher' is unavailable. {e}");
}
}

Expand Down

0 comments on commit c1b6af5

Please sign in to comment.