mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 08:16:39 +00:00
Add logs
This commit is contained in:
@@ -1041,6 +1041,7 @@ func (e *Engine) receiveJobEvents() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (e *Engine) handleBundle(params *mgmProto.BundleParameters) (*mgmProto.JobResponse_Bundle, error) {
|
func (e *Engine) handleBundle(params *mgmProto.BundleParameters) (*mgmProto.JobResponse_Bundle, error) {
|
||||||
|
log.Infof("handle remote debug bundle request: %s", params.String())
|
||||||
syncResponse, err := e.GetLatestSyncResponse()
|
syncResponse, err := e.GetLatestSyncResponse()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("get latest sync response: %w", err)
|
return nil, fmt.Errorf("get latest sync response: %w", err)
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ func NewExecutor() *Executor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (e *Executor) BundleJob(ctx context.Context, debugBundleDependencies debug.GeneratorDependencies, params debug.BundleConfig, mgmURL string) (string, error) {
|
func (e *Executor) BundleJob(ctx context.Context, debugBundleDependencies debug.GeneratorDependencies, params debug.BundleConfig, mgmURL string) (string, error) {
|
||||||
|
log.Infof("execute debug bundle generation")
|
||||||
bundleGenerator := debug.NewBundleGenerator(debugBundleDependencies, params)
|
bundleGenerator := debug.NewBundleGenerator(debugBundleDependencies, params)
|
||||||
|
|
||||||
path, err := bundleGenerator.Generate()
|
path, err := bundleGenerator.Generate()
|
||||||
@@ -31,5 +32,6 @@ func (e *Executor) BundleJob(ctx context.Context, debugBundleDependencies debug.
|
|||||||
return "", fmt.Errorf("upload debug bundle: %w", err)
|
return "", fmt.Errorf("upload debug bundle: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.Infof("debug bundle has been generated well")
|
||||||
return key, nil
|
return key, nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user