From 4cb2afa4388b20f0083261d7c504e3edf970a3bb Mon Sep 17 00:00:00 2001 From: Nico Andrade Date: Mon, 5 Oct 2020 13:27:07 -0400 Subject: [PATCH] Add prints to follow the flow in CI --- cachier/mongo_core.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/cachier/mongo_core.py b/cachier/mongo_core.py index b1c986f..fe506ed 100644 --- a/cachier/mongo_core.py +++ b/cachier/mongo_core.py @@ -134,7 +134,6 @@ class _MongoCore(_BaseCore): def wait_on_entry_calc(self, key): time_spent = 0 while True: - print("Waiting for Mongo cache...") time.sleep(MONGO_SLEEP_DURATION_IN_SEC) time_spent += MONGO_SLEEP_DURATION_IN_SEC key, entry = self.get_entry_by_key(key) @@ -144,9 +143,7 @@ class _MongoCore(_BaseCore): if not entry['being_calculated']: return entry['value'] - print("Got an entry. It is being calculated. Do we wait?", time_spent, self.wait_for_calc_timeout, time_spent >= self.wait_for_calc_timeout) if self.wait_for_calc_timeout > 0 and time_spent >= self.wait_for_calc_timeout: - print("Tired of waiting. RecalculationNeeded.", time_spent, self.wait_for_calc_timeout, time_spent >= self.wait_for_calc_timeout) raise RecalculationNeeded()