Skip to content

Commit

Permalink
Compact LaunchPath in debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
mircearoata committed Dec 29, 2023
1 parent 0c1fed7 commit 47fd2dc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions backend/bindings/debug_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"os"
"path"
"runtime"
"strings"
"time"

"github.com/pkg/errors"
Expand All @@ -35,8 +36,9 @@ func (d *DebugInfo) startup(ctx context.Context) {

type MetadataInstallation struct {
*common.Installation
Name string `json:"name"`
Profile string `json:"profile"`
LaunchPath string `json:"launchPath"`
Name string `json:"name"`
Profile string `json:"profile"`
}

type Metadata struct {
Expand Down Expand Up @@ -78,6 +80,7 @@ func addMetadata(writer *zip.Writer) error {
Profile: install.Installation.Profile,
}
i.Path = utils.RedactPath(i.Path)
i.LaunchPath = strings.Join(i.Installation.LaunchPath, " ")

metadataInstalls = append(metadataInstalls, i)

Expand Down

0 comments on commit 47fd2dc

Please sign in to comment.