Ver código fonte

Reduce loglevel

JC Brand 4 meses atrás
pai
commit
d8a7cd2e56
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      src/shared/texture/utils.js

+ 2 - 2
src/shared/texture/utils.js

@@ -18,7 +18,7 @@ export function isSpotifyTrack(url) {
         const { hostname, pathname } = new URL(url);
         return hostname === 'open.spotify.com' && pathname.startsWith('/track/');
     } catch (e) {
-        console.warn(`Could not create URL object from ${url}`);
+        console.debug(`Could not create URL object from ${url}`);
         return false;
     }
 }
@@ -32,7 +32,7 @@ export async function getHeaders(url) {
         const response = await fetch(url, { method: 'HEAD' });
         return response.headers;
     } catch (e) {
-        console.warn(`Error calling HEAD on url ${url}: ${e}`);
+        console.debug(`Error calling HEAD on url ${url}: ${e}`);
         return null;
     }
 }