Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

Commit

Permalink
chore: remove verbose output from garbage collection (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
bketelsen authored Sep 22, 2023
1 parent 9d79b85 commit a45d964
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/fleek/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package fleek

import (
"errors"
"io"
"io/fs"
"os"
"os/exec"
Expand Down Expand Up @@ -127,8 +128,8 @@ func CollectGarbage() error {

command := exec.Command("nix-collect-garbage", "-d")
command.Stdin = os.Stdin
command.Stderr = os.Stderr
command.Stdout = os.Stdout
command.Stderr = io.Discard
command.Stdout = io.Discard
command.Env = os.Environ()

return command.Run()
Expand Down

0 comments on commit a45d964

Please sign in to comment.