Skip to content

Commit

Permalink
Removed debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
mrodm committed Nov 19, 2024
1 parent 7c9c4ca commit cbe8cdf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions internal/kibana/packages.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"net/http"
"os"

"github.com/elastic/elastic-package/internal/logger"
"github.com/elastic/elastic-package/internal/packages"
)

Expand Down Expand Up @@ -86,13 +85,11 @@ type FleetPackage struct {
func (p *FleetPackage) Assets() []packages.Asset {
var assets []packages.Asset
if p.SavedObject != nil {
logger.Debugf("Adding from `savedObject`")
assets = append(assets, p.SavedObject.Attributes.InstalledElasticsearchAssets...)
assets = append(assets, p.SavedObject.Attributes.InstalledKibanaAssets...)
return assets
}
// starting in 9.0.0
logger.Debugf("Adding from `installationInfo`")
// starting in 9.0.0 "savedObject" fields does not exist in the API response
assets = append(assets, p.InstallationInfo.InstalledElasticsearchAssets...)
assets = append(assets, p.InstallationInfo.InstalledKibanaAssets...)
return assets
Expand Down Expand Up @@ -127,7 +124,6 @@ func (c *Client) GetPackage(ctx context.Context, name string) (*FleetPackage, er
// Response is here when new packages API is used (since 8.0)
Item *FleetPackage `json:"item"`
}
logger.Debugf(">>> Mario > Response:\n%s", string(respBody))
err = json.Unmarshal(respBody, &response)
switch {
case err != nil:
Expand Down

0 comments on commit cbe8cdf

Please sign in to comment.