mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 20:56:51 +00:00
Other: set proc.info logs verbosity lower in Launcher
This commit is contained in:
@ -275,7 +275,8 @@ func waitForProcessToFinish(exePath string) {
|
|||||||
if xslices.Any(processes, func(process types.Process) bool {
|
if xslices.Any(processes, func(process types.Process) bool {
|
||||||
info, err := process.Info()
|
info, err := process.Info()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.WithError(err).Error("Could not retrieve process info")
|
logrus.WithError(err).Trace("Could not retrieve process info")
|
||||||
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
return sameFile(exeInfo, info.Exe)
|
return sameFile(exeInfo, info.Exe)
|
||||||
@ -293,6 +294,7 @@ func sameFile(info os.FileInfo, path string) bool {
|
|||||||
pathInfo, err := os.Stat(path)
|
pathInfo, err := os.Stat(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.WithError(err).WithField("file", path).Error("Could not retrieve file info")
|
logrus.WithError(err).WithField("file", path).Error("Could not retrieve file info")
|
||||||
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
return os.SameFile(pathInfo, info)
|
return os.SameFile(pathInfo, info)
|
||||||
|
|||||||
Reference in New Issue
Block a user