Skip to content

Commit

Permalink
remove console.log statements from Micro (#3548)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart authored Sep 4, 2024
1 parent 353ba19 commit 8a601d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/brown-dolls-cross.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"effect": patch
---

remove console.log statements from Micro
3 changes: 0 additions & 3 deletions packages/effect/src/Micro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2594,11 +2594,9 @@ export const withTrace: {
const f = (name: string) => (self: Micro<any, any, any>) =>
unsafeMakeOptions(function(env, onExit) {
self[runSymbol](env, function(exit) {
console.log(name, exit)
onExit(exit._tag === "Left" ? Either.left(generate(name, exit.left)) : exit)
})
}, false)
console.log(arguments.length)
if (arguments.length === 2) {
return f(arguments[1])(arguments[0])
}
Expand Down Expand Up @@ -3954,7 +3952,6 @@ export const runSyncExit = <A, E>(effect: Micro<A, E>): MicroExit<A, E> => {
const handle = runFork(effect, { scheduler })
scheduler.flush()
const exit = handle.unsafePoll()
console.log(exit)
if (exit === null) {
return exitDie(handle)
}
Expand Down

0 comments on commit 8a601d7

Please sign in to comment.