mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 06:07:37 +02:00
[tomahawk.js]Remove some excessive logging
This commit is contained in:
@@ -308,8 +308,6 @@ Tomahawk.Resolver = Tomahawk.extend(TomahawkResolver, {
|
|||||||
return merged.concat.apply(merged,collectionResults);
|
return merged.concat.apply(merged,collectionResults);
|
||||||
}).then(function(collectionResults) {
|
}).then(function(collectionResults) {
|
||||||
Promise.resolve(that.search({query:query})).then(function(results){
|
Promise.resolve(that.search({query:query})).then(function(results){
|
||||||
Tomahawk.log(JSON.stringify(results));
|
|
||||||
Tomahawk.log(JSON.stringify(collectionResults));
|
|
||||||
Tomahawk.addTrackResults({
|
Tomahawk.addTrackResults({
|
||||||
'qid': qid,
|
'qid': qid,
|
||||||
'results': that._convertUrls(results.concat(collectionResults))
|
'results': that._convertUrls(results.concat(collectionResults))
|
||||||
@@ -855,9 +853,6 @@ Tomahawk.PluginManager = {
|
|||||||
|
|
||||||
resolve: [],
|
resolve: [],
|
||||||
invokeSync: function (requestId, objectId, methodName, params) {
|
invokeSync: function (requestId, objectId, methodName, params) {
|
||||||
Tomahawk.log('invokeSync ' + methodName);
|
|
||||||
Tomahawk.log('invokeSync params ' + JSON.stringify(params));
|
|
||||||
Tomahawk.log(Tomahawk.resolver.instance.appVersion);
|
|
||||||
if (!Tomahawk.resolver.instance.apiVersion || Tomahawk.resolver.instance.apiVersion < 0.9) {
|
if (!Tomahawk.resolver.instance.apiVersion || Tomahawk.resolver.instance.apiVersion < 0.9) {
|
||||||
if (methodName === 'artistAlbums') {
|
if (methodName === 'artistAlbums') {
|
||||||
methodName = 'albums';
|
methodName = 'albums';
|
||||||
@@ -895,8 +890,6 @@ Tomahawk.PluginManager = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Tomahawk.log(methodName);
|
|
||||||
Tomahawk.log(JSON.stringify(params));
|
|
||||||
return this.objects[objectId][methodName](params);
|
return this.objects[objectId][methodName](params);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -904,8 +897,6 @@ Tomahawk.PluginManager = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
invoke: function (requestId, objectId, methodName, params ) {
|
invoke: function (requestId, objectId, methodName, params ) {
|
||||||
Tomahawk.log('invoke ' + methodName);
|
|
||||||
Tomahawk.log('invoke params ' + JSON.stringify(params));
|
|
||||||
Promise.resolve(this.invokeSync(requestId, objectId, methodName, params)).then(function (result) {
|
Promise.resolve(this.invokeSync(requestId, objectId, methodName, params)).then(function (result) {
|
||||||
if (typeof result === 'object') {
|
if (typeof result === 'object') {
|
||||||
Tomahawk.reportScriptJobResults({
|
Tomahawk.reportScriptJobResults({
|
||||||
|
Reference in New Issue
Block a user