From bd3c6647af4717ad37232f262bee3e47527754b5 Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 29 Jun 2024 18:43:04 +0100 Subject: [PATCH] [biography] add logging --- ext/biography/main.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/biography/main.php b/ext/biography/main.php index cb91b154..312a07bf 100644 --- a/ext/biography/main.php +++ b/ext/biography/main.php @@ -27,7 +27,9 @@ class Biography extends Extension { global $page, $user, $user_config; if ($event->page_matches("biography", method: "POST")) { - $user_config->set_string("biography", $event->get_POST('biography')); + $bio = $event->get_POST('biography'); + log_info("biography", "Set biography to $bio"); + $user_config->set_string("biography", $bio); $page->flash("Bio Updated"); $page->set_mode(PageMode::REDIRECT); $page->set_redirect(referer_or(make_link()));