Skip to content

Commit

Permalink
Disable some logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
nojaf committed Nov 25, 2022
1 parent a7cb8c9 commit 203aee3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions tests/ParallelTypeCheckingTests/Code/Parallel.fs
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ let processInParallel
let mutable processedCount = 0

let processItem item =
printfn $"Processing {_itemToString item}"
// printfn $"Processing {_itemToString item}"
let toSchedule = work item

let processedCount =
lock processedCountLock (fun () ->
processedCount <- processedCount + 1
processedCount)

let toScheduleString =
toSchedule |> Array.map _itemToString |> (fun names -> String.Join(", ", names))
// let toScheduleString =
// toSchedule |> Array.map _itemToString |> (fun names -> String.Join(", ", names))

printfn $"Scheduling {toSchedule.Length} items: {toScheduleString}"
// printfn $"Scheduling {toSchedule.Length} items: {toScheduleString}"
toSchedule |> Array.iter bc.Add
processedCount

Expand Down
4 changes: 2 additions & 2 deletions tests/ParallelTypeCheckingTests/Code/ParallelTypeChecking.fs
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ let CheckMultipleInputsInParallel
let checkForErrors2 () = priorErrors || (logger.ErrorCount > 0)

let tcSink = TcResultsSink.NoSink
let c = cnt
// let c = cnt
cnt <- cnt + 1

printfn $"#{c} [thread {Thread.CurrentThread.ManagedThreadId}] Type-checking {input.FileName}"
// printfn $"#{c} [thread {Thread.CurrentThread.ManagedThreadId}] Type-checking {input.FileName}"

let! f =
CheckOneInput'(
Expand Down

0 comments on commit 203aee3

Please sign in to comment.