Setting per-paging for logs to load 10K initially like the old apis (#6697)

* Setting per-paging for logs to load 10K initially like the old apis

* Fixing unit test
Этот коммит содержится в:
Corey Hulen
2017-06-20 13:13:02 -07:00
коммит произвёл GitHub
родитель 68ea0abfa6
Коммит b5d2c12d22
2 изменённых файлов: 11 добавлений и 8 удалений

Просмотреть файл

@@ -19,6 +19,9 @@ import (
)
func GetLogs(page, perPage int) ([]string, *model.AppError) {
perPage = 10000
var lines []string
if einterfaces.GetClusterInterface() != nil && *utils.Cfg.ClusterSettings.Enable {
lines = append(lines, "-----------------------------------------------------------------------------------------------------------")