From 4d0174a189d0a459671745d3a78549f68098cb40 Mon Sep 17 00:00:00 2001 From: GlazerMann Date: Thu, 1 Feb 2024 10:47:45 -0600 Subject: [PATCH] better error logs --- expandFns.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/expandFns.php b/expandFns.php index 6dd93c653f..a3afbfe6e8 100644 --- a/expandFns.php +++ b/expandFns.php @@ -94,7 +94,7 @@ function doi_works(string $doi) : ?bool { HandleCache::$cache_good[$doi] = TRUE; return TRUE; } - bot_debug_log('Got NULL for DOI: ' . echoable($doi)); + bot_debug_log('Got NULL for DOI: ' . str_ireplace(['<', '>'], ['<', '>'],echoable($doi))); HandleCache::$cache_hdl_null[$doi] = TRUE; return NULL; } @@ -1413,7 +1413,7 @@ function hdl_works(string $hdl) : string|null|false { return FALSE; } HandleCache::$cache_hdl_null[$hdl] = TRUE; - bot_debug_log('Got NULL for HDL: ' . echoable($hdl)); + bot_debug_log('Got NULL for HDL: ' .str_ireplace(['<', '>'], ['<', '>'],echoable($hdl))); return NULL; } if ($works === FALSE) {