Simplified error logging