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
748f2f66
Commit
748f2f66
authored
Jul 11, 2013
by
Leigh B Stoller
Browse files
Speaksfor changes; full logging of all destructive operations.
Also an upcall to add speaksfor metadata to logfile.
parent
0b0df3f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/xmlrpc/protogeni-wrapper.pl.in
View file @
748f2f66
...
...
@@ -453,6 +453,15 @@ sub AddLogfileMetaDataFromSlice($)
AddLogfileMetaData
("
slice_urn
",
$slice
->
urn
());
AddLogfileMetaData
("
slice_uuid
",
$slice
->
uuid
());
}
sub
AddLogfileMetaDataFromSpeaksFor
($)
{
my
(
$speaksfor
)
=
@_
;
AddLogfileMetaData
("
speakfor_urn
",
$speaksfor
->
target_urn
());
AddLogfileMetaData
("
speakfor_uuid
",
$speaksfor
->
target_uuid
());
AddLogfileMetaData
("
speaking_urn
",
$speaksfor
->
owner_urn
());
AddLogfileMetaData
("
speaking_uuid
",
$speaksfor
->
owner_uuid
());
}
#
# Use libaudit to capture any output from libraries and programs. We
...
...
@@ -508,11 +517,20 @@ if ($method eq "ListResources" ||
# Do not even bother with logs unless an error.
$nostorelogs
=
1
;
}
# We always want as much data as possible for these.
if
(
$method
eq
"
CreateSliver
"
||
$method
eq
"
RedeemTicket
"
||
$method
eq
"
GetTicket
")
{
# We always want as much data as possible for these, since they are
# destructive operations. Eventually we should have the individual
# routines use an upcall to set their own debugging level.
if
(
$method
eq
"
CreateSliver
"
||
$method
eq
"
UpdateSliver
"
||
$method
eq
"
DeleteSliver
"
||
$method
eq
"
Shutdown
"
||
$method
eq
"
GetTicket
"
||
$method
eq
"
ReleaseTicket
"
||
$method
eq
"
UpdateTicket
"
||
$method
eq
"
RedeemTicket
"
||
$method
eq
"
DeleteSlice
")
{
$debug
=
2
;
$nostorelogs
=
0
;
}
#
...
...
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