Only printf when attached to debug terminal