去除错误提示中的程序文件名中的Workspace目录

This commit is contained in:
刘祥超
2022-04-18 16:31:48 +08:00
parent 9c79152efe
commit d6eec0fa52
3 changed files with 21 additions and 4 deletions

View File

@@ -2,6 +2,7 @@ package apps
import (
"github.com/TeaOSLab/EdgeNode/internal/goman"
"github.com/TeaOSLab/EdgeNode/internal/utils"
"github.com/TeaOSLab/EdgeNode/internal/utils/sizes"
"github.com/iwind/TeaGo/Tea"
"github.com/iwind/TeaGo/files"
@@ -77,7 +78,7 @@ func (this *LogWriter) Write(message string) {
var ok bool
_, file, line, ok = runtime.Caller(callDepth)
if ok {
file = this.packagePath(file)
file = utils.RemoveWorkspace(this.packagePath(file))
}
}