From 47c75aa279f1ec140bdd2b5e4c975bee3c0c2055 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Fri, 30 Oct 2009 15:40:22 -0700 Subject: Log an alert when we can't load a user. --- modules/gallery/models/log.php | 1 + 1 file changed, 1 insertion(+) (limited to 'modules') diff --git a/modules/gallery/models/log.php b/modules/gallery/models/log.php index 4f6b8c4b..c816a4a7 100644 --- a/modules/gallery/models/log.php +++ b/modules/gallery/models/log.php @@ -28,6 +28,7 @@ class Log_Model extends ORM { try { return identity::lookup_user($this->user_id); } catch (Exception $e) { + Kohana::log("alert", "Unable to load user with id $this->user_id"); return null; } } else { -- cgit v1.2.3