镜像自地址
https://github.com/tuna/tunasync.git
已同步 2025-12-06 06:26:46 +00:00
style: better logging
这个提交包含在:
@@ -43,7 +43,7 @@ func (c *cgroupHook) preExec() error {
|
||||
func (c *cgroupHook) postExec() error {
|
||||
err := c.killAll()
|
||||
if err != nil {
|
||||
logger.Error("Error killing tasks: %s", err.Error())
|
||||
logger.Errorf("Error killing tasks: %s", err.Error())
|
||||
}
|
||||
|
||||
c.created = false
|
||||
@@ -75,7 +75,7 @@ func (c *cgroupHook) killAll() error {
|
||||
taskList = append(taskList, pid)
|
||||
}
|
||||
for _, pid := range taskList {
|
||||
logger.Debug("Killing process: %d", pid)
|
||||
logger.Debugf("Killing process: %d", pid)
|
||||
unix.Kill(pid, syscall.SIGKILL)
|
||||
}
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户