Skip to content
Snippets Groups Projects
Commit d4881c19 authored by Tomáš Plesník's avatar Tomáš Plesník
Browse files

zmena nazvu globalnich promennych

parent ce4e4170
No related branches found
No related tags found
No related merge requests found
...@@ -29,19 +29,19 @@ sub errMsg ...@@ -29,19 +29,19 @@ sub errMsg
defined $type or $type = "err"; # default type is err. Other: warn defined $type or $type = "err"; # default type is err. Other: warn
# check verbose logging # check verbose logging
if (($type eq "err") && ($WardenCommon::LOG_VERBOSE)) { if (($type eq "err") && ($WardenClientCommon::LOG_VERBOSE)) {
$msg .= "\nStack info: " . Carp::longmess(); $msg .= "\nStack info: " . Carp::longmess();
} }
# check logging into STDERR # check logging into STDERR
if ($WardenCommon::LOG_STDERR) { if ($WardenClientCommon::LOG_STDERR) {
print STDERR $msg . "\n"; print STDERR $msg . "\n";
} }
# check logging into Syslog # check logging into Syslog
if ($WardenCommon::SYSLOG) { if ($WardenClientCommon::SYSLOG) {
openlog("Warden-client:", "pid", "$WardenCommon::SYSLOG_FACILITY"); openlog("Warden-client:", "pid", "$WardenClientCommon::SYSLOG_FACILITY");
syslog("$type|$WardenCommon::SYSLOG_FACILITY", $msg . "\n"); syslog("$type|$WardenClientCommon::SYSLOG_FACILITY", $msg . "\n");
closelog(); closelog();
} }
...@@ -75,7 +75,7 @@ sub c2s ...@@ -75,7 +75,7 @@ sub c2s
} or return errMsg("Error in function 'c2s()' when creating SOAP::Transport::HTTP::Client object: " . $@); } or return errMsg("Error in function 'c2s()' when creating SOAP::Transport::HTTP::Client object: " . $@);
# setting of connection timeout # setting of connection timeout
eval {$client->timeout($WardenCommon::CONNECTION_TIMEOUT);} eval {$client->timeout($WardenClientCommon::CONNECTION_TIMEOUT);}
or return errMsg("Error in function 'c2s()' when setting connection timeout: " . $@); or return errMsg("Error in function 'c2s()' when setting connection timeout: " . $@);
# setting of SSL options # setting of SSL options
...@@ -141,7 +141,7 @@ sub getClientInfo ...@@ -141,7 +141,7 @@ sub getClientInfo
loadConf($conf_file); loadConf($conf_file);
# obtain information about clients on Warden server # obtain information about clients on Warden server
my $response = c2s($WardenCommon::URI, $WardenCommon::SSL_KEY, $WardenCommon::SSL_CERT, $WardenCommon::SSL_CA_CERT, "getClientInfo"); my $response = c2s($WardenClientCommon::URI, $WardenClientCommon::SSL_KEY, $WardenClientCommon::SSL_CERT, $WardenClientCommon::SSL_CA_CERT, "getClientInfo");
defined $response or return; # receive data or return undef defined $response or return; # receive data or return undef
# parse server response (SOAP data object) # parse server response (SOAP data object)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment