Added error logging capability to server