Added error logging for webserver gets and posts