PeopleSea 发表于 2023-11-15 15:53:26

【已解决(】8.0.4 网站日志Python报错--未开启 网站日志)

REQUEST_DATE: 2023-11-15 15:53:43
PAN_VERSION: 8.0.4
OS_VERSION: CentOS7.9.2009 x86_64(Py3.7.9)
REMOTE_ADDR: 123.58.106.170
REQUEST_URI: POST /site?action=GetSiteLogs
REQUEST_FORM: {'siteName': '**.**.cn'}
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36










----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Traceback (most recent call last):
File "/www/server/panel/BTPanel/__init__.py", line 2098, in publicObject
    res = run_obj.run(toObject, defs, get)
File "/www/server/panel/BTPanel/__init__.py", line 2045, in run
    result = getattr(toObject, get.action)(get)
File "class/panelSite.py", line 5377, in GetSiteLogs
    logsPath = re.findall('access_log\s+([^;]+){}\.log;'.format(get.siteName), config)[0]
IndexError: list index out of range








CentOS 7.9.2009 x86_64(Py3.7.9)






Nginx 1.22.1

大炮运维V587 发表于 2023-11-16 11:08:55

感谢你的支持!
页: [1]
查看完整版本: 【已解决(】8.0.4 网站日志Python报错--未开启 网站日志)