Skip to content

Commit e84176b

Browse files
Merge pull request #33 from RM-Mendix/master
Replaced deprecated mx.logger with recommended console.debug
2 parents c167a56 + 05a11de commit e84176b

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/MicroflowTimer/widget/MicroflowTimer.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ define([
3737
},
3838

3939
update: function (obj, callback) {
40-
mx.logger.debug(this.id + ".update");
40+
console.debug(this.id + ".update");
4141

4242
this._contextObj = obj;
4343
this._resetSubscriptions();
@@ -61,7 +61,7 @@ define([
6161
},
6262

6363
_checkTimerStatus: function() {
64-
mx.logger.debug(this.id + "._checkStatus");
64+
console.debug(this.id + "._checkStatus");
6565

6666
var running, newInterval;
6767

@@ -109,7 +109,7 @@ define([
109109

110110
//Called when the optional timer interval attribute is changed
111111
_intervalChange: function (newInterval) {
112-
mx.logger.debug(this.id + "._intervalChange");
112+
console.debug(this.id + "._intervalChange");
113113

114114
this.interval = newInterval;
115115

@@ -120,7 +120,7 @@ define([
120120
},
121121

122122
_runTimer: function() {
123-
mx.logger.debug(this.id + "._runTimer", this.interval);
123+
console.debug(this.id + "._runTimer", this.interval);
124124
if (this.callEvent !== "" && this._contextObj) {
125125
this._timerStarted = true;
126126

@@ -154,16 +154,16 @@ define([
154154
},
155155

156156
_stopTimer: function() {
157-
mx.logger.debug(this.id + "._stopTimer");
157+
console.debug(this.id + "._stopTimer");
158158
this._timerStarted = false;
159159

160160
if (this._timer !== null) {
161-
mx.logger.debug(this.id + "._stopTimer timer cleared");
161+
console.debug(this.id + "._stopTimer timer cleared");
162162
clearInterval(this._timer);
163163
this._timer = null;
164164
}
165165
if (this._timeout !== null) {
166-
mx.logger.debug(this.id + "._stopTimer timeout cleared");
166+
console.debug(this.id + "._stopTimer timeout cleared");
167167
clearTimeout(this._timeout);
168168
this._timeout = null;
169169
}
@@ -186,7 +186,7 @@ define([
186186
},
187187

188188
_execMf: function() {
189-
mx.logger.debug(this.id + "._execMf");
189+
console.debug(this.id + "._execMf");
190190
if (!this._contextObj) {
191191
return;
192192
}
@@ -200,13 +200,13 @@ define([
200200
},
201201
callback: lang.hitch(this, function(result) {
202202
if (!result) {
203-
mx.logger.debug(this.id + "._execMf callback, stopping timer");
203+
console.debug(this.id + "._execMf callback, stopping timer");
204204
this._stopTimer();
205205
}
206206
this._flowRunning = false;
207207
}),
208208
error: lang.hitch(this, function(error) {
209-
mx.logger.error(this.id + ": An error ocurred while executing microflow: ", error);
209+
console.error(this.id + ": An error ocurred while executing microflow: ", error);
210210
this._flowRunning = false;
211211
})
212212
};
@@ -231,13 +231,13 @@ define([
231231
context: this.mxcontext,
232232
callback: lang.hitch(this, function(result) {
233233
if (!result) {
234-
mx.logger.debug(this.id + "._executeNanoFlow callback, stopping timer");
234+
console.debug(this.id + "._executeNanoFlow callback, stopping timer");
235235
this._stopTimer();
236236
}
237237
this._flowRunning = false;
238238
}),
239239
error: lang.hitch(this, function(error) {
240-
mx.logger.error(this.id + ": An error ocurred while executing nanoflow: ", error);
240+
console.error(this.id + ": An error ocurred while executing nanoflow: ", error);
241241
this._flowRunning = false;
242242
})
243243
});
@@ -276,7 +276,7 @@ define([
276276
},
277277

278278
_executeCallback: function (cb, from) {
279-
mx.logger.debug(this.id + "._executeCallback" + (from ? " from " + from : ""));
279+
console.debug(this.id + "._executeCallback" + (from ? " from " + from : ""));
280280
if (cb && typeof cb === "function") {
281281
cb();
282282
}

0 commit comments

Comments
 (0)