瀏覽代碼

fix: console logs

Sv443 1 月之前
父節點
當前提交
f3e48fdad7
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/features/lyricsCache.ts

+ 2 - 2
src/features/lyricsCache.ts

@@ -112,7 +112,7 @@ export function addLyricsCacheEntryBest(artist: string, song: string, url: strin
   // always keep the cache <= max size
   cache.splice(getFeature("lyricsCacheMaxSize"));
 
-  log("Added cache entry for best result", artist, "-", song, "\n", entry);
+  log(`Added lyrics cache entry for best result:`, entry);
 
   emitInterface("bytm:lyricsCacheEntryAdded", { entry, type: "best" });
   return lyricsCacheMgr.setData({ cache });
@@ -152,7 +152,7 @@ export function addLyricsCacheEntryPenalized(artist: string, song: string, url:
   // always keep the cache <= max size
   cache.splice(getFeature("lyricsCacheMaxSize"));
 
-  log("Added penalized cache entry for", artist, "-", song, "with penalty fraction", penaltyFr, "\n", entry);
+  log(`Added penalized cache entry (with a penalty fraction of ${penaltyFr}):\n`, entry);
 
   emitInterface("bytm:lyricsCacheEntryAdded", { entry, type: "penalized" });
   return lyricsCacheMgr.setData({ cache });