From 5613822035a28bd95dbe9b0ef3f2076c45f86df6 Mon Sep 17 00:00:00 2001 From: Charlie Blake Date: Wed, 8 Aug 2018 17:02:13 +0100 Subject: Only log cache full error when in debug mode --- src/main/game/global_cache.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/main/game/global_cache.cpp b/src/main/game/global_cache.cpp index 90d962d..f1cf185 100644 --- a/src/main/game/global_cache.cpp +++ b/src/main/game/global_cache.cpp @@ -217,7 +217,9 @@ pair lru_cache::insert(const game_state& gs) { cache.relocate(cache.begin(), prev(cache.end())); if (i == max_num_items) { +#ifndef NDEBUG LOG_ERROR("All items in cache are live and cache is full"); +#endif throw runtime_error("All items in cache are live and cache is full"); } } -- cgit v1.2.1