MCPcopy
hub / github.com/keploy/keploy / GetRecentAppLogs

Method GetRecentAppLogs

pkg/platform/http/agent.go:808–816  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

806}
807
808func (a *AgentClient) GetRecentAppLogs(ctx context.Context) string {
809 app, err := a.getApp()
810 if err != nil {
811 a.logger.Debug("failed to get app for recent logs", zap.Error(err))
812 return ""
813 }
814
815 return app.RecentLogs(ctx)
816}
817
818// startAgent starts the keploy agent process and handles its lifecycle
819func (a *AgentClient) startAgent(ctx context.Context, isDockerCmd bool, opts models.SetupOptions) error {

Callers

nothing calls this directly

Calls 4

getAppMethod · 0.95
RecentLogsMethod · 0.80
DebugMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected