fix: debug error handler - now properly logs notices in prod env