Log internal errors in CoreAPI
Log internal errors in CoreAPI

Change CoreAPI to log the exception on internal errors, to make it
easier to know more details about the problem.

meitar/zaproxy,zaproxy/zaproxy,gmaran23/zaproxy,thc202/zaproxy,meitar/zaproxy,meitar/zaproxy,kingthorin/zaproxy,Ali-Razmjoo/zaproxy,psiinon/zaproxy,gmaran23/zaproxy,zapbot/zaproxy,psiinon/zaproxy,zapbot/zaproxy,Ali-Razmjoo/zaproxy,zapbot/zaproxy,thc202/zaproxy,meitar/zaproxy,psiinon/zaproxy,meitar/zaproxy,gmaran23/zaproxy,thc202/zaproxy,kingthorin/zaproxy,gmaran23/zaproxy,Ali-Razmjoo/zaproxy,meitar/zaproxy,thc202/zaproxy,thc202/zaproxy,gmaran23/zaproxy,zaproxy/zaproxy,gmaran23/zaproxy,meitar/zaproxy,gmaran23/zaproxy,zapbot/zaproxy,zaproxy/zaproxy,zaproxy/zaproxy,zapbot/zaproxy,psiinon/zaproxy,zaproxy/zaproxy,thc202/zaproxy,psiinon/zaproxy,zapbot/zaproxy,psiinon/zaproxy,kingthorin/zaproxy,kingthorin/zaproxy,Ali-Razmjoo/zaproxy,meitar/zaproxy,thc202/zaproxy,psiinon/zaproxy,zaproxy/zaproxy,kingthorin/zaproxy,zapbot/zaproxy,Ali-Razmjoo/zaproxy,Ali-Razmjoo/zaproxy,kingthorin/zaproxy,kingthorin/zaproxy,zaproxy/zaproxy,Ali-Razmjoo/zaproxy