js: Don't use global.log*

These are "deprecated", and are just references to the gjs logging functoins

https://bugzilla.gnome.org/show_bug.cgi?id=675790
This commit is contained in:
Jasper St. Pierre
2012-05-09 22:37:42 -03:00
parent 3a01aaf7fb
commit ce041a3190
5 changed files with 11 additions and 10 deletions

View File

@ -875,7 +875,8 @@ function initializeDeferredWork(actor, callback, props) {
function queueDeferredWork(workId) {
let data = _deferredWorkData[workId];
if (!data) {
global.logError('invalid work id ', workId);
let message = 'Invalid work id %d'.format(workId);
logError(new Error(message), message);
return;
}
if (_deferredWorkQueue.indexOf(workId) < 0)