Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
2b83a374
Commit
2b83a374
authored
Sep 23, 2010
by
Leigh B Stoller
Browse files
Minor debugging tweak to help debug the CM.
parent
fdb60e08
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/xmlrpc/protogeni-wrapper.pl.in
View file @
2b83a374
...
...
@@ -278,14 +278,30 @@ my $method = $call->{'method_name'};
if
(
!
defined
(
$GENI_METHODS
->
{
$method
}))
{
XMLError
(
3
,
"
no such method
$method
\n
");
}
# Strictly for debugging the CM.
my
$target
;
if
(
defined
(
$call
->
{'
value
'}))
{
my
(
$argref
)
=
@
{
$call
->
{'
value
'}
};
if
(
ref
(
$argref
)
eq
"
HASH
")
{
if
(
exists
(
$argref
->
{'
slice_urn
'}))
{
$target
=
$argref
->
{'
slice_urn
'};
}
elsif
(
exists
(
$argref
->
{'
sliver_urn
'}))
{
$target
=
$argref
->
{'
sliver_urn
'};
}
}
}
my
$result
;
my
$message
=
"
URN:
$GENIURN
\n
"
.
"
URN:
$GENIURN
\n
";
$message
.=
"
Target:
$target
\n
"
if
(
defined
(
$target
));
$message
.=
"
Module:
$MODULE
\n
"
.
"
Method:
$method
\n
";
$message
.=
"
Version:
$GENI_VERSION
\n
"
if
(
defined
(
$GENI_VERSION
));
eval
{
$result
=
&
{
$GENI_METHODS
->
{
$method
}
}(
@
{
$call
->
{'
value
'}
})
};
if
(
$@
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment