Рабочие журналы обрезаются в locustUI ⇐ Python
-
Anonymous
Рабочие журналы обрезаются в locustUI
Работник попытался отправить более 10 строк журнала за один интервал. Дальнейшая отправка журналов отключена для этого работника.
Журналы работника не отправляются после этого исключения. Есть ли способ переопределить это поведение.
Запуск locust на распределенном узле с журналами.
Код, выполняющий это, находится в runners.py
def logs_reporter(self) -> None:
if WORKER_LOG_REPORT_INTERVAL < 0:
return
while True:
current_logs = get_logs()
if (len(current_logs) - len(self.logs)) > 10:
logger.warning(
"The worker attempted to send more than 10 log lines in one interval. Further log sending was disabled for this worker."
)
self._send_logs(get_logs())
break
if len(current_logs) > len(self.logs):
self._send_logs(current_logs)
self.logs = current_logs
gevent.sleep(WORKER_LOG_REPORT_INTERVAL)
Подробнее здесь: https://stackoverflow.com/questions/791 ... n-locustui
Работник попытался отправить более 10 строк журнала за один интервал. Дальнейшая отправка журналов отключена для этого работника.
Журналы работника не отправляются после этого исключения. Есть ли способ переопределить это поведение.
Запуск locust на распределенном узле с журналами.
Код, выполняющий это, находится в runners.py
def logs_reporter(self) -> None:
if WORKER_LOG_REPORT_INTERVAL < 0:
return
while True:
current_logs = get_logs()
if (len(current_logs) - len(self.logs)) > 10:
logger.warning(
"The worker attempted to send more than 10 log lines in one interval. Further log sending was disabled for this worker."
)
self._send_logs(get_logs())
break
if len(current_logs) > len(self.logs):
self._send_logs(current_logs)
self.logs = current_logs
gevent.sleep(WORKER_LOG_REPORT_INTERVAL)
Подробнее здесь: https://stackoverflow.com/questions/791 ... n-locustui
Мобильная версия