Server error reporting moved to logger function