cleaning up log statements on client side