test(bkgpslog):Add debug code and negative int catch