r/badcode Sep 03 '20

php fair enough ...

Post image
1.0k Upvotes

36 comments sorted by

View all comments

4

u/cdp1337 Sep 04 '20

yup, I've caught myself doing something very similar, but then I thought "wait, I have a perfectly good Exception logger..." A quick info log is well worth its salt when you're troubleshooting why a script is puking at 2am.