diff --git a/application/backend/app/containerdb/containerdb.go b/application/backend/app/containerdb/containerdb.go index ee8e08e..94d3144 100644 --- a/application/backend/app/containerdb/containerdb.go +++ b/application/backend/app/containerdb/containerdb.go @@ -111,7 +111,7 @@ func GetLogsByStatus(host string, container string, message string, status strin counter := 0 iteration := 0 last_item := []string{} - for counter < limit && iteration < 10000 { + for counter < limit { iteration += 1 key := iter.Key() if len(key) == 0 { @@ -159,7 +159,7 @@ func GetLogs(getPrev bool, include bool, host string, container string, message counter := 0 iteration := 0 last_item := []string{} - for counter < limit && iteration < 10000 { + for counter < limit { iteration += 1 key := string(iter.Key()) if len(key) == 0 {