Move logging up to the controllers so that our logging can operate at a more meta level

This commit is contained in:
Bharat Mediratta
2008-12-21 04:18:42 +00:00
parent 3ce32dab55
commit b3c05b1579
3 changed files with 4 additions and 4 deletions
-4
View File
@@ -187,8 +187,6 @@ class user_Core {
user::set_active($user);
module::event("user_login", $user);
log::add("user", "User $user->name logged in",
log::INFO, html::anchor("user/$user->id", $user->name));
}
public static function logout() {
@@ -200,8 +198,6 @@ class user_Core {
Kohana::log("error", $e);
}
module::event("user_logout", $user);
log::add("user", "User $user->name logged out",
log::INFO, html::anchor("user/$user->id", $user->name));
}
}