Add conditional logging to bubblescatter.