Perf pro tip: do not wrap logging statements in Promises. Just no.
Second time I've encountered this is past few weeks.
No.
Don't.
Stop it.
#brokenpromises
-
-
Replying to @jasnell @matteocollina
Does this mean an async function can't have a logging statement in it?
1 reply 0 retweets 0 likes -
no, but logging statements should not return a promise/or be awaited for.
1 reply 0 retweets 2 likes
Replying to @matteocollina @jasnell
I can't even work out why somebody might do that?
1:08 PM - 5 Apr 2020
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.