Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Warden
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pavel Valach
Warden
Commits
d4881c19
Commit
d4881c19
authored
10 years ago
by
Tomáš Plesník
Browse files
Options
Downloads
Patches
Plain Diff
zmena nazvu globalnich promennych
parent
ce4e4170
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/warden-client/lib/WardenClientCommon.pm
+7
-7
7 additions, 7 deletions
src/warden-client/lib/WardenClientCommon.pm
with
7 additions
and
7 deletions
src/warden-client/lib/WardenClientCommon.pm
+
7
−
7
View file @
d4881c19
...
@@ -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
")
&&
(
$
WardenC
lientC
ommon::
LOG_VERBOSE
))
{
$msg
.=
"
\n
Stack info:
"
.
Carp::
longmess
();
$msg
.=
"
\n
Stack info:
"
.
Carp::
longmess
();
}
}
# check logging into STDERR
# check logging into STDERR
if
(
$
WardenCommon::
LOG_STDERR
)
{
if
(
$
WardenC
lientC
ommon::
LOG_STDERR
)
{
print
STDERR
$msg
.
"
\n
";
print
STDERR
$msg
.
"
\n
";
}
}
# check logging into Syslog
# check logging into Syslog
if
(
$
WardenCommon::
SYSLOG
)
{
if
(
$
WardenC
lientC
ommon::
SYSLOG
)
{
openlog
("
Warden-client:
",
"
pid
",
"
$WardenCommon
::SYSLOG_FACILITY
");
openlog
("
Warden-client:
",
"
pid
",
"
$WardenC
lientC
ommon
::SYSLOG_FACILITY
");
syslog
("
$type
|
$WardenCommon
::SYSLOG_FACILITY
",
$msg
.
"
\n
");
syslog
("
$type
|
$WardenC
lientC
ommon
::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
(
$
WardenC
lientC
ommon::
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
(
$
WardenC
lientC
ommon::
URI
,
$
WardenC
lientC
ommon::
SSL_KEY
,
$
WardenC
lientC
ommon::
SSL_CERT
,
$
WardenC
lientC
ommon::
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)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment