修改无日志记录提示

pull/26/head
ibuler 2015-11-10 16:00:05 +08:00
parent 0174da6c77
commit 7fe0bb21b2
1 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@ def log_history(request):
content += '%s: %s\n' % (tty_log.datetime.strftime('%Y-%m-%d %H:%M:%S'), tty_log.cmd) content += '%s: %s\n' % (tty_log.datetime.strftime('%Y-%m-%d %H:%M:%S'), tty_log.cmd)
return HttpResponse(content) return HttpResponse(content)
return HttpResponse('无日志记录, 请查看日志处理脚本是否开启!') return HttpResponse('无日志记录!')
@require_role('admin') @require_role('admin')
@ -100,7 +100,7 @@ def log_record(request):
content = renderTemplate(log_file, log_time) content = renderTemplate(log_file, log_time)
return HttpResponse(content) return HttpResponse(content)
else: else:
return HttpResponse('无日志记录, 请查看日志处理脚本是否开启!') return HttpResponse('无日志记录!')
def web_terminal(request): def web_terminal(request):