From feb3ae4c092b947834598c7b024e243a9163267b Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 17 Jan 2011 15:06:15 -0500 Subject: [PATCH] add a log method to AccountMover --- lib/accountmover.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lib/accountmover.php b/lib/accountmover.php index eefd0487d8..b9b910d070 100644 --- a/lib/accountmover.php +++ b/lib/accountmover.php @@ -170,4 +170,20 @@ class AccountMover break; } } + + /** + * Log some data + * + * Add a header for our class so we know who did it. + * + * @param int $level Log level, like LOG_ERR or LOG_INFO + * @param string $message Message to log + * + * @return void + */ + + protected function log($level, $message) + { + common_log($level, "AccountMover: " . $message); + } } -- 2.39.5