mirror of
https://github.com/luckfox-eng29/kvm.git
synced 2026-01-18 03:28:19 +01:00
Cleanup logging
Make sure all logging output is called via the main logger instead of stdlib `"log"` or `fmt.Print(f|ln)`. Signed-off-by: SuperQ <superq@gmail.com>
This commit is contained in:
3
fuse.go
3
fuse.go
@@ -2,7 +2,6 @@ package kvm
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
"sync"
|
||||
"syscall"
|
||||
@@ -104,7 +103,7 @@ func RunFuseServer() {
|
||||
var err error
|
||||
fuseServer, err = fs.Mount(fuseMountPoint, &FuseRoot{}, opts)
|
||||
if err != nil {
|
||||
fmt.Println("failed to mount fuse: %w", err)
|
||||
logger.Warnf("failed to mount fuse: %v", err)
|
||||
}
|
||||
fuseServer.Wait()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user