remove some logging

This commit is contained in:
Tamius Han 2021-03-29 23:40:34 +02:00
parent 03f37fa1a3
commit b634e4d2b3
2 changed files with 13 additions and 19 deletions

View File

@ -45,11 +45,6 @@ class CommsServer {
], ],
'get-current-site': [ 'get-current-site': [
async (message, port) => { async (message, port) => {
console.info("WILL GET CURRENT SITE AND RETURN:", {
cmd: 'set-current-site',
site: await this.server.getVideoTab(),
tabHostname: await this.getCurrentTabHostname()
})
port.postMessage({ port.postMessage({
cmd: 'set-current-site', cmd: 'set-current-site',
site: await this.server.getVideoTab(), site: await this.server.getVideoTab(),

View File

@ -298,9 +298,6 @@ class Resizer {
let translate = this.computeOffsets(stretchFactors); let translate = this.computeOffsets(stretchFactors);
console.log("aspect ratio will be set. stretch factors:", stretchFactors, "translate:", translate);
this.applyCss(stretchFactors, translate); this.applyCss(stretchFactors, translate);
} }
@ -543,17 +540,19 @@ class Resizer {
} }
} }
console.log('info', ['debug', 'resizer'], "[Resizer::_res_computeOffsets] <rid:"+this.resizerId+"> calculated offsets:\n\n", this.logger.log(
'---- data in ----', 'info', ['debug', 'resizer'], "[Resizer::_res_computeOffsets] <rid:"+this.resizerId+"> calculated offsets:\n\n",
'\nplayer dimensions: ', {w: this.conf.player.dimensions.width, h: this.conf.player.dimensions.height}, '---- data in ----',
'\nvideo dimensions: ', {w: this.conf.video.offsetWidth, h: this.conf.video.offsetHeight}, '\nplayer dimensions: ', {w: this.conf.player.dimensions.width, h: this.conf.player.dimensions.height},
'\nreal video dimensions:', {w: realVideoWidth, h: realVideoHeight}, '\nvideo dimensions: ', {w: this.conf.video.offsetWidth, h: this.conf.video.offsetHeight},
'\nstretch factors: ', stretchFactors, '\nreal video dimensions:', {w: realVideoWidth, h: realVideoHeight},
'\npan & zoom: ', this.pan, this.zoom.scale, '\nstretch factors: ', stretchFactors,
'\nwdiff, hdiff: ', wdiff, 'x', hdiff, '\npan & zoom: ', this.pan, this.zoom.scale,
'\nwdiff, hdiffAfterZoom:', wdiffAfterZoom, 'x', hdiffAfterZoom, '\nwdiff, hdiff: ', wdiff, 'x', hdiff,
'\n\n---- data out ----\n', '\nwdiff, hdiffAfterZoom:', wdiffAfterZoom, 'x', hdiffAfterZoom,
'translate:', translate); '\n\n---- data out ----\n',
'translate:', translate
);
// by the way, let's do a quick sanity check whether video player is doing any fuckies wuckies // by the way, let's do a quick sanity check whether video player is doing any fuckies wuckies
// fucky wucky examples: // fucky wucky examples: