STYLE: improved logging output
This commit is contained in:
+3
-2
@@ -2,10 +2,11 @@ package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"slices"
|
||||
|
||||
"github.com/charmbracelet/log"
|
||||
)
|
||||
|
||||
type RoomFolder struct {
|
||||
@@ -30,7 +31,7 @@ func LoadRoomFolders(roomspath string) ([]RoomFolder, error) {
|
||||
entrypath := filepath.Join(roomspath, entry.Name())
|
||||
roomfolder, err := loadRoom(entrypath)
|
||||
if err != nil {
|
||||
log.Printf("ERROR: unable to load directory: %s: %v", entrypath, err)
|
||||
log.Errorf("unable to load directory: %s: %v", entrypath, err)
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user