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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user