Log HTTP requests similar to SQL queries and other stuff
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Sat, 23 Jan 2010 22:30:21 +0000 (22:30 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Sat, 23 Jan 2010 22:30:21 +0000 (22:30 +0000)
includes/HttpFunctions.php

index 2de2675..d575a88 100644 (file)
@@ -18,6 +18,7 @@ class Http {
         * @returns mixed (bool)false on failure or a string on success
         */
        public static function request( $method, $url, $options = array() ) {
+               wfDebug( "HTTP: $method: $url" );
                $options['method'] = strtoupper( $method );
                if ( !isset( $options['timeout'] ) ) {
                        $options['timeout'] = 'default';