update logger and print stack when error on client