Skip to content

Commit 37fe5bb

Browse files
committed
docs: fix incorrect sample code
1 parent 7c83f0b commit 37fe5bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

user_guide_src/source/general/logging.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ into the message string::
9797
// Generates a message like: User 123 logged into the system from 127.0.0.1
9898
$info = [
9999
'id' => $user->id,
100-
'ip_address' => $this->request->ip_address()
100+
'ip_address' => $this->request->getIPAddress()
101101
];
102102

103103
log_message('info', 'User {id} logged into the system from {ip_address}', $info);

0 commit comments

Comments
 (0)