Skip to content

Commit

Permalink
chore: more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsol committed Dec 21, 2023
1 parent 52c80b6 commit db7bede
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package cli

import (
"fmt"
"log/slog"

"github.com/Khan/genqlient/graphql"
"github.com/spf13/viper"
Expand Down Expand Up @@ -87,6 +88,8 @@ func (g *GlobalContext) ReInit() error {

// Wipe will remove any trace of ficsit anywhere
func (g *GlobalContext) Wipe() error {
slog.Info("wiping global context")

// Wipe all installations
for _, installation := range g.Installations.Installations {
if err := installation.Wipe(); err != nil {
Expand Down
2 changes: 2 additions & 0 deletions cli/installations.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,8 @@ func (i *Installation) WriteLockFile(ctx *GlobalContext, lockfile *resolver.Lock
}

func (i *Installation) Wipe() error {
slog.Info("wiping installation", slog.String("path", i.Path))

d, err := i.GetDisk()
if err != nil {
return err
Expand Down

0 comments on commit db7bede

Please sign in to comment.