We don't need this debugging code anymore

feature/node-rewrite
Sven Slootweg 12 years ago
parent 1d3aa1f756
commit fafa7ae8b5

@ -89,29 +89,12 @@ class SshConnector extends CPHPBaseClass
$command = "python /etc/cvm/start_tunnel.py {$sHost} {$sUser} {$sPort} {$sKeyFile} {$sSessionKey}";
$steps = array();
foreach(debug_backtrace() as $step)
{
try
{
$allargs = implode(", ", $step['args']);
}
catch (Exception $e)
{
$allargs = "[unserializable]";
}
$steps[] = "{$step['file']}:{$step['line']} => {$step['class']}{$step['type']}{$step['function']}({$allargs})";
}
cphp_debug_snapshot(array(
"action" => "start tunnel",
"db-tunnelkey" => $this->node->sTunnelKey,
"db-utunnelkey" => $this->node->uTunnelKey,
"ssh-tunnelkey" => $this->tunnel_key,
"arg-tunnelkey" => $sSessionKey,
"trace" => $steps
"arg-tunnelkey" => $sSessionKey
));
exec($command, $output, $returncode);

Loading…
Cancel
Save