Handle logs from all pods in function and error condition in fission fn log command (#2634)

* handle error condition in fission fn log command
* use single stream for log exclude fetcher logs
* add all-pods in fn logs command
* update previous stable version
This commit is contained in:
neha_gupta
2022-11-24 11:21:00 +05:30
committed by GitHub
parent 82d066b73a
commit 31639774b0
8 changed files with 75 additions and 52 deletions
+3 -1
View File
@@ -31,7 +31,7 @@ const (
)
type LogDatabase interface {
GetLogs(context.Context, LogFilter) (*bytes.Buffer, error)
GetLogs(context.Context, LogFilter, *bytes.Buffer) error
}
type LogFilter struct {
@@ -44,6 +44,8 @@ type LogFilter struct {
RecordLimit int
FunctionObject *v1.Function
Details bool
WarnUser bool
AllPods bool
}
type LogEntry struct {