Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 1525128

Browse files
committed
These are useful messages to mark as errors
1 parent 27006b7 commit 1525128

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/GitHub.Api/Tasks/TaskManager.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ private T ScheduleUI<T>(T task, bool setupFaultHandler)
8585
{
8686
task.Task.ContinueWith(tt =>
8787
{
88-
logger.Trace(tt.Exception.InnerException, String.Format("Exception on ui thread: {0} {1}", tt.Id, task.Name));
88+
logger.Error(tt.Exception.InnerException, String.Format("Exception on ui thread: {0} {1}", tt.Id, task.Name));
8989
},
9090
cts.Token,
9191
TaskContinuationOptions.OnlyOnFaulted, ConcurrentScheduler
@@ -101,7 +101,7 @@ private T ScheduleExclusive<T>(T task, bool setupFaultHandler)
101101
{
102102
task.Task.ContinueWith(tt =>
103103
{
104-
logger.Trace(tt.Exception.InnerException, String.Format("Exception on exclusive thread: {0} {1}", tt.Id, task.Name));
104+
logger.Error(tt.Exception.InnerException, String.Format("Exception on exclusive thread: {0} {1}", tt.Id, task.Name));
105105
},
106106
cts.Token,
107107
TaskContinuationOptions.OnlyOnFaulted, ConcurrentScheduler
@@ -117,7 +117,7 @@ private T ScheduleConcurrent<T>(T task, bool setupFaultHandler)
117117
{
118118
task.Task.ContinueWith(tt =>
119119
{
120-
logger.Trace(tt.Exception.InnerException, String.Format("Exception on concurrent thread: {0} {1}", tt.Id, task.Name));
120+
logger.Error(tt.Exception.InnerException, String.Format("Exception on concurrent thread: {0} {1}", tt.Id, task.Name));
121121
},
122122
cts.Token,
123123
TaskContinuationOptions.OnlyOnFaulted, ConcurrentScheduler

0 commit comments

Comments
 (0)