From aaca502500ad99171bfe761a8779c04dda22cae6 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Mon, 9 Sep 2019 11:42:11 -0500 Subject: [PATCH] add dispatcher thread name to assert log --- src/client/spark/view/Shell/ViewModels/ShellThreadFactory.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/spark/view/Shell/ViewModels/ShellThreadFactory.cs b/src/client/spark/view/Shell/ViewModels/ShellThreadFactory.cs index b28b21b41..0419641eb 100644 --- a/src/client/spark/view/Shell/ViewModels/ShellThreadFactory.cs +++ b/src/client/spark/view/Shell/ViewModels/ShellThreadFactory.cs @@ -42,8 +42,8 @@ namespace mbts.ui.shell try { Dispatcher.Run(); } - catch (Exception e) { - Log.assert(false, e.ToString()); + catch (Exception ex) { + Log.assert(false, $"Exception on dispatcher thread '{name}': {ex}."); } finally { Log.Ui.info("Disposing slow {0} and cleaning up background thread.".fmt(name));