From 0a9d03996fc46458b0916280146d7a05dbf84652 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 14 Mar 2006 12:19:24 +0000 Subject: log some actions --- mdkonline.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mdkonline.pm b/mdkonline.pm index 9b76676e..38cc4a15 100644 --- a/mdkonline.pm +++ b/mdkonline.pm @@ -12,6 +12,7 @@ use Net::HTTPS; use HTTP::Request::Common; use HTTP::Request; use SOAP::Lite; +use log; #For debugging use Data::Dumper; @@ -91,26 +92,31 @@ sub get_distro_type() { sub soap_create_account { my $data = $s->registerUser(@_)->result; + log::l("creating account $_[0]") $data; } sub soap_authenticate_user { my $data = $s->authenticateUser(@_)->result; + log::l("authenticating account $_[0]") $data; } sub soap_register_host { my $data = $s->registerHost(@_)->result; + log::l("registering host $_[3] named $_[4] in country $_[5]") $data; } sub soap_upload_config { my $data = $s->setHostConfig(@_); + log::l("uploading config") $data ? $data->result : undef; } sub soap_query_bundle { my ($wc, $bundle_name) = @_; + log::l("querying the bundle $bundle_name") my $data = $s->query($wc->{HOST_ID}, $wc->{HOST_KEY}, 'Software::get_bundle', $bundle_name)->result; $data; } -- cgit v1.2.1