loggin errors in hook

loggin errors in hook