r44415 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r44414‎ | r44415 | r44416 >
Date:18:49, 10 December 2008
Author:brion
Status:ok
Tags:
Comment:
add debug lines for UDP output so it can be more easily tested offline
Modified paths:
  • /trunk/phase3/includes/RecentChange.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/RecentChange.php
@@ -215,9 +215,12 @@
216216 $conn = socket_create( AF_INET, SOCK_DGRAM, SOL_UDP );
217217 if( $conn ) {
218218 $line = $prefix . $line;
 219+ wfDebug( __METHOD__ . ": sending UDP line: $line\n" );
219220 socket_sendto( $conn, $line, strlen($line), 0, $address, $wgRC2UDPPort );
220221 socket_close( $conn );
221222 return true;
 223+ } else {
 224+ wfDebug( __METHOD__ . ": failed to create UDP socket\n" );
222225 }
223226 }
224227 return false;

Status & tagging log