Skip to content

Commit

Permalink
Logging changes for xrootd testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgates108 committed Jul 7, 2021
1 parent 26d928f commit 7498d41
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
5 changes: 3 additions & 2 deletions admin/templates/configuration/etc/log4cxx.czar.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
# used by Qserv-czar
#

log4j.rootLogger=INFO, CONSOLE
#log4j.rootLogger=INFO, CONSOLE //&&&
log4j.rootLogger=ERROR, CONSOLE

# Use this appender to interlace xrootd debug messages with Qserv-czar standard
# logs. stdout/stderr are redirected to {{QSERV_LOG_DIR}}/qserv-czar-console.log.
Expand All @@ -27,5 +28,5 @@ log4j.appender.FILE.layout.conversionPattern=%d{yyyy-MM-ddTHH:mm:ss.SSSZ} %X %-5
#log4j.logger.lsst.qserv.util=DEBUG
#log4j.logger.lsst.qserv.qana=DEBUG
#log4j.logger.lsst.qserv.xrdssi.msgs=WARN //&&&
log4j.logger.lsst.qserv.xrdssi.msgs=DEBUG
log4j.logger.lsst.qserv.xrdssi.msgs=ERROR

5 changes: 3 additions & 2 deletions admin/templates/configuration/etc/log4cxx.worker.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
# Configuration file for log4cxx
#

log4j.rootLogger=DEBUG, CONSOLE
#log4j.rootLogger=DEBUG, CONSOLE //&&&
log4j.rootLogger=ERROR, CONSOLE

# Appender for xrootd log file
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=[%d{yyyy-MM-ddTHH:mm:ss.SSSZ}] %X %-5p %c{2} (%F:%L) - %m%n

#log4j.logger.lsst.qserv.xrdssi.msgs=WARN &&&
log4j.logger.lsst.qserv.xrdssi.msgs=DEBUG
log4j.logger.lsst.qserv.xrdssi.msgs=ERROR
1 change: 1 addition & 0 deletions admin/templates/configuration/etc/lsp.cf
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ xrd.port {{XROOTD_PORT}}

# Uncomment the following line for detailed xrootd debugging
# xrootd.trace all debug
xrootd.trace fs request response

# Set limits for the number of threads open by XRootD services
# See more details on these parameters at:
Expand Down
4 changes: 2 additions & 2 deletions admin/templates/configuration/etc/sysconfig/qserv
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ ulimit -c unlimited
export PYTHONUNBUFFERED=1

export XRD_LOGLEVEL=Debug
unset XRDSSIDEBUG
#export XRDSSIDEBUG=0
#unset XRDSSIDEBUG
export XRDSSIDEBUG=1

# Increase timeouts, without that, long-running queries fail.
# The proper fix is coming, see DM-3433
Expand Down
2 changes: 1 addition & 1 deletion core/modules/ccontrol/UserQueryFactory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ UserQueryFactory::UserQueryFactory(czar::CzarConfig const& czarConfig,
std::string const& czarName)
: _userQuerySharedResources(makeUserQuerySharedResources(czarConfig, dbModels, czarName)) {

::putenv((char*)"XRDDEBUG=1");
//&&& ::putenv((char*)"XRDDEBUG=1");

_executiveConfig = std::make_shared<qdisp::ExecutiveConfig>(
czarConfig.getXrootdFrontendUrl(), czarConfig.getQMetaSecondsBetweenChunkUpdates());
Expand Down

0 comments on commit 7498d41

Please sign in to comment.