* Introduced FileRepoStatus -- result class for file repo operations.
[lhc/web/wiklou.git] / includes / GlobalFunctions.php
index abf101f..f8d0c76 100644 (file)
@@ -237,6 +237,13 @@ function wfLogDBError( $text ) {
  * Log to a file without getting "file size exceeded" signals
  */
 function wfErrorLog( $text, $file ) {
+       # Temp: add unique request prefix
+       static $prefix;
+       if ( !isset( $prefix ) ) {
+               $prefix = chr( mt_rand( 33, 126 ) ) . chr( mt_rand( 33, 126 ) ) . chr( mt_rand( 33, 126 ) ) . '| ';
+       }
+       $text = $prefix . $text;
+
        wfSuppressWarnings();
        $exists = file_exists( $file );
        $size = $exists ? filesize( $file ) : false;
@@ -2139,7 +2146,9 @@ function wfSetupSession() {
        }
        session_set_cookie_params( 0, $wgCookiePath, $wgCookieDomain, $wgCookieSecure);
        session_cache_limiter( 'private, must-revalidate' );
+       wfDebug( "Starting session..." );
        @session_start();
+       wfDebug( "ok\n" );
 }
 
 /**
@@ -2296,4 +2305,4 @@ function wfScript( $script = 'index' ) {
  */
 function wfBoolToStr( $value ) {
        return $value ? 'true' : 'false';
-}
\ No newline at end of file
+}