Surrounded print statement for ping request into an if debug mode statement