mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Make the console quieter by default
This commit is contained in:
parent
e5343cada8
commit
e12e6731b2
56 changed files with 286 additions and 273 deletions
|
@ -286,10 +286,10 @@ var AppInfo = {};
|
|||
bindConnectionManagerEvents(connectionManager, events, userSettings);
|
||||
|
||||
if (!AppInfo.isNativeApp) {
|
||||
console.log("loading ApiClient singleton");
|
||||
console.debug("loading ApiClient singleton");
|
||||
|
||||
return require(["apiclient"], function (apiClientFactory) {
|
||||
console.log("creating ApiClient singleton");
|
||||
console.debug("creating ApiClient singleton");
|
||||
|
||||
var apiClient = new apiClientFactory(Dashboard.serverAddress(), apphost.appName(), apphost.appVersion(), apphost.deviceName(), apphost.deviceId(), window.devicePixelRatio);
|
||||
|
||||
|
@ -301,7 +301,7 @@ var AppInfo = {};
|
|||
window.ApiClient = apiClient;
|
||||
localApiClient = apiClient;
|
||||
|
||||
console.log("loaded ApiClient singleton");
|
||||
console.debug("loaded ApiClient singleton");
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -335,7 +335,7 @@ var AppInfo = {};
|
|||
try {
|
||||
playbackManager.onAppClose();
|
||||
} catch (err) {
|
||||
console.log("error in onAppClose: " + err);
|
||||
console.error("error in onAppClose: " + err);
|
||||
}
|
||||
});
|
||||
return playbackManager;
|
||||
|
@ -393,7 +393,7 @@ var AppInfo = {};
|
|||
}
|
||||
|
||||
function onRequireJsError(requireType, requireModules) {
|
||||
console.log("RequireJS error: " + (requireType || "unknown") + ". Failed modules: " + (requireModules || []).join(","));
|
||||
console.error("RequireJS error: " + (requireType || "unknown") + ". Failed modules: " + (requireModules || []).join(","));
|
||||
}
|
||||
|
||||
function defineResizeObserver() {
|
||||
|
@ -481,7 +481,7 @@ var AppInfo = {};
|
|||
|
||||
Promise.all(promises).then(function () {
|
||||
createConnectionManager().then(function () {
|
||||
console.log("initAfterDependencies promises resolved");
|
||||
console.debug("initAfterDependencies promises resolved");
|
||||
|
||||
require(["globalize", "browser"], function (globalize, browser) {
|
||||
window.Globalize = globalize;
|
||||
|
@ -525,10 +525,10 @@ var AppInfo = {};
|
|||
document.title = Globalize.translateDocument(document.title, "core");
|
||||
|
||||
if (browser.tv && !browser.android) {
|
||||
console.log("Using system fonts with explicit sizes");
|
||||
console.debug("using system fonts with explicit sizes");
|
||||
require(["systemFontsSizedCss"]);
|
||||
} else {
|
||||
console.log("Using default fonts");
|
||||
console.debug("using default fonts");
|
||||
require(["systemFontsCss"]);
|
||||
}
|
||||
|
||||
|
@ -540,7 +540,7 @@ var AppInfo = {};
|
|||
}
|
||||
|
||||
function loadPlugins(appHost, browser, shell) {
|
||||
console.log("Loading installed plugins");
|
||||
console.debug("loading installed plugins");
|
||||
var list = [
|
||||
"components/playback/playaccessvalidation",
|
||||
"components/playback/experimentalwarnings",
|
||||
|
@ -582,13 +582,13 @@ var AppInfo = {};
|
|||
}
|
||||
|
||||
function onAppReady(browser) {
|
||||
console.log("Begin onAppReady");
|
||||
console.debug("begin onAppReady");
|
||||
|
||||
// ensure that appHost is loaded in this point
|
||||
require(['apphost', 'appRouter'], function (appHost, appRouter) {
|
||||
window.Emby = {};
|
||||
|
||||
console.log("onAppReady - loading dependencies");
|
||||
console.debug("onAppReady - loading dependencies");
|
||||
if (browser.iOS) {
|
||||
require(['css!assets/css/ios.css']);
|
||||
}
|
||||
|
@ -659,7 +659,7 @@ var AppInfo = {};
|
|||
try {
|
||||
navigator.serviceWorker.register("serviceworker.js");
|
||||
} catch (err) {
|
||||
console.log("Error registering serviceWorker: " + err);
|
||||
console.error("error registering serviceWorker: " + err);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue