add log to getpin.class