Skip to content

Commit

Permalink
Use getTimeRotatingLogger for WMCore REST
Browse files Browse the repository at this point in the history
  • Loading branch information
d-ylee committed Apr 1, 2024
1 parent 9a703d6 commit dd78352
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/python/WMCore/REST/Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
### Tools is needed for CRABServer startup: it sets up the tools attributes
import WMCore.REST.Tools
from WMCore.Configuration import ConfigSection, loadConfigurationFile
from WMCore.WMLogging import getTimeRotatingLogger, MyTimedRotatingFileHandler
from Utils.Utilities import lowerCmsHeaders
from Utils.PythonVersion import PY2

Expand Down Expand Up @@ -619,5 +620,9 @@ def main():
else:
server.logfile = opts.logfile

# setup rotating log
getTimeRotatingLogger(None, server.logfile)


# Actually start the daemon now.
server.start_daemon()

0 comments on commit dd78352

Please sign in to comment.