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

Commit 92653c5

Browse files
committed
Turn down some of the logging noise
1 parent 7fe301a commit 92653c5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/GitHub.Api/NewTaskSystem/TaskBase.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ public virtual ITask Start(TaskScheduler scheduler)
231231
{
232232
if (Task.Status == TaskStatus.Created)
233233
{
234-
Logger.Trace($"Starting {Affinity} {ToString()}");
234+
//Logger.Trace($"Starting {Affinity} {ToString()}");
235235
Task.Start(scheduler);
236236
}
237237
RunContinuation();
@@ -242,7 +242,7 @@ protected virtual void RunContinuation()
242242
{
243243
if (continuation != null)
244244
{
245-
Logger.Trace($"Setting ContinueWith {Affinity} {continuation}");
245+
//Logger.Trace($"Setting ContinueWith {Affinity} {continuation}");
246246
Task.ContinueWith(_ => ((TaskBase)(object)continuation).Run(), Token, continuationAlways ? runAlwaysOptions : runOnSuccessOptions,
247247
TaskManager.GetScheduler(continuation.Affinity));
248248
}
@@ -295,7 +295,7 @@ protected virtual void Run(bool success)
295295

296296
protected virtual void RaiseOnStart()
297297
{
298-
Logger.Trace($"Executing {ToString()}");
298+
//Logger.Trace($"Executing {ToString()}");
299299
OnStart?.Invoke(this);
300300
}
301301

@@ -304,7 +304,7 @@ protected virtual void RaiseOnEnd()
304304
OnEnd?.Invoke(this);
305305
if (Task.Status != TaskStatus.Faulted && continuation == null)
306306
finallyHandler?.Invoke();
307-
Logger.Trace($"Finished {ToString()}");
307+
//Logger.Trace($"Finished {ToString()}");
308308
}
309309

310310
protected virtual bool RaiseFaultHandlers(Exception ex)
@@ -569,7 +569,7 @@ protected virtual TResult RunWithReturn(bool success)
569569
}
570570
protected override void RaiseOnStart()
571571
{
572-
Logger.Trace($"Executing {ToString()}");
572+
//Logger.Trace($"Executing {ToString()}");
573573
OnStart?.Invoke(this);
574574
base.RaiseOnStart();
575575
}
@@ -580,7 +580,7 @@ protected virtual void RaiseOnEnd(TResult result)
580580
if (Task.Status == TaskStatus.Faulted || continuation == null)
581581
finallyHandler?.Invoke(result);
582582
RaiseOnEnd();
583-
Logger.Trace($"Finished {ToString()} {result}");
583+
//Logger.Trace($"Finished {ToString()} {result}");
584584
}
585585

586586
public new Task<TResult> Task

0 commit comments

Comments
 (0)