Change te-broker log location

Change te-broker log location to HTML folder

Change-Id: Ib77e5a93bfa9125c66bef8ee09150cbbc22cf943
This commit is contained in:
Sagi Shnaidman 2018-02-27 00:14:06 +00:00
parent 33afffa972
commit 9abde2fd8c
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ from novaclient import exceptions
# 100Mb log files
maxBytes=1024*1024*100
logging.basicConfig(filename="/var/log/testenv-worker.log", format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logging.basicConfig(filename="/var/www/html/tebroker/testenv-worker.log", format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
class CallbackClient(gear.Client):
@ -271,7 +271,7 @@ def main(args=sys.argv[1:]):
global logger
logger = logging.getLogger('testenv-worker-' + opts.tenum)
logger.addHandler(logging.handlers.RotatingFileHandler("/var/log/testenv-worker.log", maxBytes=maxBytes, backupCount=5))
logger.addHandler(logging.handlers.RotatingFileHandler("/var/www/html/tebroker/testenv-worker.log", maxBytes=maxBytes, backupCount=5))
logger.setLevel(logging.INFO)
logger.removeHandler(logger.handlers[0])