@@ -69,26 +69,18 @@ func CLI() error {
69
69
70
70
err = unix .Setpriority (unix .PRIO_PROCESS , 0 , * nice )
71
71
if err != nil {
72
- << << << < Updated upstream
73
72
// We alert the user instead of failing the command since it can be difficult to debug
74
73
// for a template admin otherwise. It's quite possible (and easy) to set an
75
74
// inappriopriate value for niceness.
76
- printfStdErr ("failed to adjust niceness to %q: %v" , * nice , err )
77
- == == == =
78
- return xerrors .Errorf ("set nice score for cmd %v: %w" , args , err )
79
- >> >> >> > Stashed changes
75
+ printfStdErr ("failed to adjust niceness to %d for cmd %+v: %v" , * nice , args , err )
80
76
}
81
77
82
78
err = writeOOMScoreAdj (* oom )
83
79
if err != nil {
84
- << << << < Updated upstream
85
80
// We alert the user instead of failing the command since it can be difficult to debug
86
81
// for a template admin otherwise. It's quite possible (and easy) to set an
87
82
// inappriopriate value for oom_score_adj.
88
- printfStdErr ("failed to adjust oom score to %q: %v" , * nice , err )
89
- == == == =
90
- return xerrors .Errorf ("set oom score for cmd %v: %w" , args , err )
91
- >> >> >> > Stashed changes
83
+ printfStdErr ("failed to adjust oom score to %d for cmd %+v: %v" , * oom , args , err )
92
84
}
93
85
94
86
path , err := exec .LookPath (args [0 ])
0 commit comments