Skip to content

Commit

Permalink
Disable FDW update message during plugin update. Closes #2312 #
Browse files Browse the repository at this point in the history
  • Loading branch information
kaidaguerre committed Aug 9, 2022
1 parent aeac80e commit ca64841
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions cmd/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"github.com/turbot/steampipe/pkg/utils"
)

// Plugin management commands
// Plugin management commands
func pluginCmd() *cobra.Command {
var cmd = &cobra.Command{
Use: "plugin [command]",
Expand Down Expand Up @@ -403,8 +403,9 @@ func runPluginUpdateCmd(cmd *cobra.Command, args []string) {
for updateResult := range dataChannel {
updateResults = append(updateResults, updateResult)
}

refreshConnectionsIfNecessary(cmd.Context(), updateResults, false)
// prevent fdw update message
nullStatusHookCtx := statushooks.DisableStatusHooks(ctx)
refreshConnectionsIfNecessary(nullStatusHookCtx, updateResults, false)
progressBars.Stop()
fmt.Println()
display.PrintInstallReports(updateResults, true)
Expand Down
2 changes: 1 addition & 1 deletion pkg/db/db_local/local_db_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func NewLocalClient(ctx context.Context, invoker constants.Invoker) (*LocalDbCli
}
dbClient, err := db_client.NewDbClient(ctx, connString)
if err != nil {
log.Printf("[WARN] error getting local client %s", err.Error())
log.Printf("[TRACE] error getting local client %s", err.Error())
return nil, err
}

Expand Down

0 comments on commit ca64841

Please sign in to comment.