From 8c42d20e96424b03ba4d8336554c02be6a9ee9c9 Mon Sep 17 00:00:00 2001 From: Giraffaman Date: Fri, 12 Apr 2024 23:55:54 +0200 Subject: [PATCH] --- ext/auto_tagger/main.php | 1 - ext/rating/main.php | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/auto_tagger/main.php b/ext/auto_tagger/main.php index df89cf559..bc060495a 100644 --- a/ext/auto_tagger/main.php +++ b/ext/auto_tagger/main.php @@ -165,7 +165,6 @@ public function onTagSet(TagSetEvent $event): void foreach ($results as $r) { if ((!str_contains($r, ':')) && (!str_contains($r, '='))) { $tmp_new_tags[] = $r; - error_log("auto-tagger: result ".$r." is metatag?"); continue; } diff --git a/ext/rating/main.php b/ext/rating/main.php index ebafc06c8..f79bc5fab 100644 --- a/ext/rating/main.php +++ b/ext/rating/main.php @@ -323,7 +323,7 @@ public function onTagTermCheck(TagTermCheckEvent $event): void { if (preg_match($this->search_regexp, $event->term)) { $event->metatag = true; - error_log("ratings: ".$event->metatag." is a ratings tag!"); + error_log("ratings: ".$event->term." is a ratings tag!"); } } @@ -695,7 +695,8 @@ private function set_rating(int $image_id, string $rating, string $old_rating): global $database; if ($old_rating != $rating) { $database->execute("UPDATE images SET rating=:rating WHERE id=:id", ['rating' => $rating, 'id' => $image_id]); - log_info("rating", "Rating for >>{$image_id} set to: ".$this->rating_to_human($rating)); + #log_info("rating", "Rating for >>{$image_id} set to: ".$this->rating_to_human($rating)); + error_log("rating", "Rating for >>{$image_id} set to: ".$this->rating_to_human($rating)); } } }