From 059c723cc19f7b85b2d2732cc98bddda95e84b89 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sat, 11 Mar 2023 17:46:18 +0000 Subject: [PATCH] Add nicer debug logging --- core/clients/platform.py | 1 + core/management/commands/scheduling.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/core/clients/platform.py b/core/clients/platform.py index 4ce0290..4733832 100644 --- a/core/clients/platform.py +++ b/core/clients/platform.py @@ -429,6 +429,7 @@ class LocalPlatformClient(ABC): async def cheat(self, assets=None): # Get all public ads for the given assets + log.debug(f"Running cheat for {self.instance.name}") public_ads = await self.get_all_public_ads(assets) if not public_ads: return False diff --git a/core/management/commands/scheduling.py b/core/management/commands/scheduling.py index d357d7c..a00e3e2 100644 --- a/core/management/commands/scheduling.py +++ b/core/management/commands/scheduling.py @@ -28,7 +28,6 @@ async def aggregator_job(): async def platform_job(interval): - print("PLATFORM JOB FOR", interval) if interval == 0: return platforms = Platform.objects.filter(enabled=True, cheat_interval_seconds=interval)