from Underlying_Operations import underlying_operations import time op = underlying_operations() # try to trigger several screenshots for i in range(8): print(f"Triggering screenshot #{i+1}") ok = op.get_screenshot(device_id="DUMMY_DEVICE", path="pic", use_service=False) print("result:", ok) time.sleep(0.6) print("\n--- Log snippet ---") try: with open("logs/screenshot_calls.log", "r", encoding="utf-8") as f: lines = f.read().splitlines() for ln in lines[-120:]: print(ln) except Exception as e: print("Could not read log:", e)