You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1、版本master
2、docker logs -f archery
File "/opt/archery/sql/slowlog.py", line 135, in slowquery_review_history
query_engine = get_engine(instance=instance_info)
^^^^^^^^^^
NameError: name 'get_engine' is not defined
3、添加sed -i '1i from sql.engines import get_engine' /opt/archery/sql/slowlog.py
报错:
File "/opt/venv4archery/lib/python3.11/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/archery/sql/slowlog.py", line 48, in slowquery_review
self, start_time, end_time, db_name, limit, offset
^^^^
NameError: name 'self' is not defined
预期外的结果
2023-12-26 15:45:10,253 - django.request - ERROR - Internal Server Error: /slowquery/review/
Traceback (most recent call last):
File "/opt/venv4archery/lib/python3.11/site-packages/django/core/handlers/exception.py", line 56, in inner
response = get_response(request)
^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv4archery/lib/python3.11/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv4archery/lib/python3.11/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/archery/sql/slowlog.py", line 48, in slowquery_review
self, start_time, end_time, db_name, limit, offset
^^^^
NameError: name 'self' is not defined
日志文本
No response
版本
master
部署方式
Docker
是否还有其他可以辅助定位问题的信息?比如数据库版本等
No response
The text was updated successfully, but these errors were encountered:
重现步骤
1、版本master
2、docker logs -f archery
File "/opt/archery/sql/slowlog.py", line 135, in slowquery_review_history
query_engine = get_engine(instance=instance_info)
^^^^^^^^^^
NameError: name 'get_engine' is not defined
3、添加sed -i '1i from sql.engines import get_engine' /opt/archery/sql/slowlog.py
报错:
预期外的结果
2023-12-26 15:45:10,253 - django.request - ERROR - Internal Server Error: /slowquery/review/
Traceback (most recent call last):
File "/opt/venv4archery/lib/python3.11/site-packages/django/core/handlers/exception.py", line 56, in inner
response = get_response(request)
^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv4archery/lib/python3.11/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv4archery/lib/python3.11/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/archery/sql/slowlog.py", line 48, in slowquery_review
self, start_time, end_time, db_name, limit, offset
^^^^
NameError: name 'self' is not defined
日志文本
No response
版本
master
部署方式
Docker
是否还有其他可以辅助定位问题的信息?比如数据库版本等
No response
The text was updated successfully, but these errors were encountered: