Skip to content

Commit 576ef4b

Browse files
committed
Disable Marshal error logging for Release
1 parent 2c538ba commit 576ef4b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Visibility/Extensions.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ await Task.Run(async () =>
7171
}
7272
catch (Exception ex)
7373
{
74+
#if DEBUG
7475
PluginLog.LogError(ex.ToString());
76+
#endif
7577
}
7678
});
7779
}
@@ -92,7 +94,9 @@ await Task.Run(() =>
9294
}
9395
catch (Exception ex)
9496
{
97+
#if DEBUG
9598
PluginLog.LogError(ex.ToString());
99+
#endif
96100
}
97101
});
98102
}
@@ -111,7 +115,9 @@ await Task.Run(() =>
111115
}
112116
catch (Exception ex)
113117
{
118+
#if DEBUG
114119
PluginLog.LogError(ex.ToString());
120+
#endif
115121
}
116122
});
117123
}

0 commit comments

Comments
 (0)