mirror of
https://github.com/ansible/awx.git
synced 2026-07-07 22:38:04 -02:30
record profile data in /var/log/tower, not /var/lib/awx
This commit is contained in:
@@ -17,7 +17,7 @@ __all__ = ['DatabaseWrapper']
|
||||
|
||||
class RecordedQueryLog(object):
|
||||
|
||||
def __init__(self, log, db, dest='/var/lib/awx/profile'):
|
||||
def __init__(self, log, db, dest='/var/log/tower/profile'):
|
||||
self.log = log
|
||||
self.db = db
|
||||
self.dest = dest
|
||||
|
||||
@@ -6,7 +6,7 @@ from awx.main.tasks import profile_sql
|
||||
class Command(BaseCommand):
|
||||
"""
|
||||
Enable or disable SQL Profiling across all Python processes.
|
||||
SQL profile data will be recorded at /var/lib/awx/profile/
|
||||
SQL profile data will be recorded at /var/log/tower/profile
|
||||
"""
|
||||
|
||||
def add_arguments(self, parser):
|
||||
|
||||
@@ -34,7 +34,7 @@ perf_logger = logging.getLogger('awx.analytics.performance')
|
||||
|
||||
class TimingMiddleware(threading.local):
|
||||
|
||||
dest = '/var/lib/awx/profile'
|
||||
dest = '/var/log/tower/profile'
|
||||
|
||||
def process_request(self, request):
|
||||
self.start_time = time.time()
|
||||
|
||||
Reference in New Issue
Block a user