Skip to content

Commit

Permalink
Fixed data sharing
Browse files Browse the repository at this point in the history
  • Loading branch information
dvanaken committed Jul 31, 2020
1 parent e56309d commit c116c7c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
12 changes: 12 additions & 0 deletions server/website/website/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,14 @@
'backupCount': 15,
'formatter': 'standard',
},
'analysis': {
'level': 'DEBUG',
'class': 'logging.handlers.RotatingFileHandler',
'filename': join(LOG_DIR, 'analysis.log'),
'maxBytes': 2097152,
'backupCount': 15,
'formatter': 'standard',
},
'dblog': {
'level': 'DEBUG',
'class': 'django_db_logger.db_log_handler.DatabaseLogHandler',
Expand Down Expand Up @@ -331,6 +339,10 @@
'level': 'INFO',
'propagate': False,
},
'analysis': {
'handlers': ['console', 'analysis', 'dblog'],
'level': 'DEBUG',
},
'celery': {
'handlers': ['celery', 'dblog', 'console'],
'level': 'DEBUG',
Expand Down
3 changes: 1 addition & 2 deletions server/website/website/tasks/async_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,7 @@ def aggregate_target_results(aggregate_target_results_input):

# Aggregate all knob config results tried by the target so far in this
# tuning session and this tuning workload.
target_results = Result.objects.filter(session=session,
dbms=newest_result.dbms,
target_results = Result.objects.filter(dbms=newest_result.dbms,
workload=newest_result.workload)
LOG.debug("%s: # results: %s", task_name, len(target_results))
if len(target_results) == 0:
Expand Down

0 comments on commit c116c7c

Please sign in to comment.