STYLE: improved logging output

This commit is contained in:
zomo
2026-04-16 00:13:24 -05:00
parent 219423f2b3
commit e6329500b5
6 changed files with 138 additions and 23 deletions
+3 -2
View File
@@ -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
}