From 37fe5bb223faa6303c14303023fe9bbf53d21de3 Mon Sep 17 00:00:00 2001 From: kenjis Date: Mon, 20 Dec 2021 13:48:34 +0900 Subject: [PATCH] docs: fix incorrect sample code --- user_guide_src/source/general/logging.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user_guide_src/source/general/logging.rst b/user_guide_src/source/general/logging.rst index 761500ac722a..08e60d60988c 100644 --- a/user_guide_src/source/general/logging.rst +++ b/user_guide_src/source/general/logging.rst @@ -97,7 +97,7 @@ into the message string:: // Generates a message like: User 123 logged into the system from 127.0.0.1 $info = [ 'id' => $user->id, - 'ip_address' => $this->request->ip_address() + 'ip_address' => $this->request->getIPAddress() ]; log_message('info', 'User {id} logged into the system from {ip_address}', $info);