mirror of
https://github.com/octoleo/restic.git
synced 2024-11-25 06:07:44 +00:00
Merge pull request #4531 from MichaelEischer/silence-automaxprocs
Disable log output from automaxprocs library
This commit is contained in:
commit
ae83a9002a
@ -6,3 +6,4 @@ on hosts with many CPU cores.
|
|||||||
|
|
||||||
https://github.com/restic/restic/issues/4128
|
https://github.com/restic/restic/issues/4128
|
||||||
https://github.com/restic/restic/pull/4485
|
https://github.com/restic/restic/pull/4485
|
||||||
|
https://github.com/restic/restic/pull/4531
|
||||||
|
@ -10,7 +10,7 @@ import (
|
|||||||
godebug "runtime/debug"
|
godebug "runtime/debug"
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
_ "go.uber.org/automaxprocs"
|
"go.uber.org/automaxprocs/maxprocs"
|
||||||
|
|
||||||
"github.com/restic/restic/internal/debug"
|
"github.com/restic/restic/internal/debug"
|
||||||
"github.com/restic/restic/internal/errors"
|
"github.com/restic/restic/internal/errors"
|
||||||
@ -18,6 +18,11 @@ import (
|
|||||||
"github.com/restic/restic/internal/restic"
|
"github.com/restic/restic/internal/restic"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
// don't import `go.uber.org/automaxprocs` to disable the log output
|
||||||
|
_, _ = maxprocs.Set()
|
||||||
|
}
|
||||||
|
|
||||||
// cmdRoot is the base command when no other command has been specified.
|
// cmdRoot is the base command when no other command has been specified.
|
||||||
var cmdRoot = &cobra.Command{
|
var cmdRoot = &cobra.Command{
|
||||||
Use: "restic",
|
Use: "restic",
|
||||||
|
Loading…
Reference in New Issue
Block a user