This commit is contained in:
parent
24a94b4965
commit
934327052d
|
|
@ -458,8 +458,7 @@ class App:
|
|||
if not protectExt in siteInfo['protectExt']:
|
||||
continue
|
||||
siteInfo['protectExt'].remove(protectExt)
|
||||
self.writeLog('站点[%s]从受保护列表中删除[.%s]' %
|
||||
(siteInfo['siteName'], protectExt))
|
||||
self.writeLog('站点[%s]从受保护列表中删除[.%s]' % (siteInfo['siteName'], protectExt))
|
||||
self.siteReload(siteInfo)
|
||||
self.saveSiteConfig(siteInfo)
|
||||
return mw.returnJson(True, '删除成功!')
|
||||
|
|
|
|||
|
|
@ -123,10 +123,10 @@ class MyEventHandler(pyinotify.ProcessEvent):
|
|||
return ret[0:20]
|
||||
return ret
|
||||
|
||||
def get_site_logs(self, Stiename):
|
||||
def get_site_logs(self, site_name):
|
||||
try:
|
||||
pythonV = sys.version_info[0]
|
||||
path = '/www/wwwlogs/' + Stiename + '.log'
|
||||
path = '/www/wwwlogs/' + site_name + '.log'
|
||||
num = 500
|
||||
if not os.path.exists(path):
|
||||
return []
|
||||
|
|
|
|||
Loading…
Reference in New Issue