[TASK] Some stuff for error logging