hiding logs behind a debug print