Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
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
Harbor 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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
e1ab8b87
Commit
e1ab8b87
authored
7 years ago
by
Michael Davis
Browse files
Options
Downloads
Patches
Plain Diff
[cta-admin] Sets log level from environment variables
parent
8f580dc7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmdline/CtaAdminCmd.cpp
+10
-3
10 additions, 3 deletions
cmdline/CtaAdminCmd.cpp
xrootd-ssi-protobuf-interface
+1
-1
1 addition, 1 deletion
xrootd-ssi-protobuf-interface
with
11 additions
and
4 deletions
cmdline/CtaAdminCmd.cpp
+
10
−
3
View file @
e1ab8b87
...
...
@@ -153,9 +153,16 @@ void CtaAdminCmd::send() const
// Set configuration options
XrdSsiPb
::
Config
config
;
config
.
set
(
"response_bufsize"
,
StreamBufferSize
);
config
.
set
(
"request_timeout"
,
DefaultRequestTimeout
);
config
.
getEnv
(
"request_timeout"
,
"XRD_REQUESTTIMEOUT"
);
config
.
set
(
"response_bufsize"
,
StreamBufferSize
);
// default value = 1024 bytes
config
.
set
(
"request_timeout"
,
DefaultRequestTimeout
);
// default value = 10s
config
.
getEnv
(
"request_timeout"
,
"XRD_REQUESTTIMEOUT"
);
// environment variable can override default
// If XRDDEBUG=1, switch on all logging
if
(
getenv
(
"XRDDEBUG"
))
{
config
.
set
(
"log"
,
"all"
);
}
// If fine-grained control over log level is required, use XrdSsiPbLogLevel
config
.
getEnv
(
"log"
,
"XrdSsiPbLogLevel"
);
// Obtain a Service Provider
XrdSsiPbServiceType
cta_service
(
endpoint
,
Resource
,
config
);
...
...
This diff is collapsed.
Click to expand it.
xrootd-ssi-protobuf-interface
@
d37262d0
Subproject commit
abdb133901fb9451a27e941910a5a2228117ce99
Subproject commit
d37262d05c46e8d420f3b38b7b929a36a6056b9f
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