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

chore: remove verbose output from garbage collection #290

Merged
merged 1 commit into from
Sep 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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