1
0
镜像自地址 https://github.com/tuna/tunasync.git 已同步 2025-12-06 06:26:46 +00:00

style: better logging

这个提交包含在:
bigeagle
2016-04-29 20:26:51 +08:00
父节点 6e84da0f6a
当前提交 f8fd1ae460
共有 14 个文件被更改,包括 81 次插入41 次删除

查看文件

@@ -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)
}