Add tag information to emit error log