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}"; $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( cphp_debug_snapshot(array(
"action" => "start tunnel", "action" => "start tunnel",
"db-tunnelkey" => $this->node->sTunnelKey, "db-tunnelkey" => $this->node->sTunnelKey,
"db-utunnelkey" => $this->node->uTunnelKey, "db-utunnelkey" => $this->node->uTunnelKey,
"ssh-tunnelkey" => $this->tunnel_key, "ssh-tunnelkey" => $this->tunnel_key,
"arg-tunnelkey" => $sSessionKey, "arg-tunnelkey" => $sSessionKey
"trace" => $steps
)); ));
exec($command, $output, $returncode); exec($command, $output, $returncode);

Loading…
Cancel
Save