]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add a log method to AccountMover
authorEvan Prodromou <evan@status.net>
Mon, 17 Jan 2011 20:06:15 +0000 (15:06 -0500)
committerEvan Prodromou <evan@status.net>
Mon, 17 Jan 2011 20:06:15 +0000 (15:06 -0500)
lib/accountmover.php

index eefd0487d8a9f38c05a175121f032a9c024ff31d..b9b910d0702c975cf0a2be6b8cda09ab1f8850b1 100644 (file)
@@ -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);
+    }
 }