Better HN
topnewbestaskshowjobs
Log inSign up

dadschool

1 karma · joined Mar 5, 2019 (7y ago) · 1 submissions

Submissions

comment 7y ago · link · parent

Agreed, we append a logging function to the request context and inject it where needed. With async/await it actually isnt too unwieldily, though it was a bit more intrusive with promises. I think a lot of guys from multithreaded backgrounds (in my case java) often struggle with this approach because looks like such an anti-pattern for them.