[FIX] web_tour: add some logging messages
With this commit, we add a few extra logs to help debugging issues with phantomjs. I suspect that the recent problems with phantomjs are due to the localstorage not being cleared properly, but the logs are not sufficient to determine the exact cause.
This commit is contained in:
@@ -204,6 +204,7 @@ return core.Class.extend(mixins.EventDispatcherMixin, ServicesMixin, {
|
||||
this.running_step_delay = parseInt(local_storage.getItem(get_running_delay_key()), 10) || 10;
|
||||
this.edition = (_.last(session.server_version_info) === 'e') ? 'enterprise' : 'community';
|
||||
this._log = [];
|
||||
console.log('Tour Manager is ready. running_tour=' + this.running_tour);
|
||||
},
|
||||
/**
|
||||
* Registers a tour described by the following arguments (in order)
|
||||
@@ -271,6 +272,7 @@ return core.Class.extend(mixins.EventDispatcherMixin, ServicesMixin, {
|
||||
}).bind(this));
|
||||
},
|
||||
run: function (tour_name, step_delay) {
|
||||
console.log(_.str.sprintf("Preparing tour %s", tour_name));
|
||||
if (this.running_tour) {
|
||||
this._deactivate_tip(this.active_tooltips[this.running_tour]);
|
||||
this._consume_tour(this.running_tour, _.str.sprintf("Killing tour %s", this.running_tour));
|
||||
|
||||
@@ -61,6 +61,7 @@ function PhantomTest() {
|
||||
console.log('<phantomLog>'+message+'</phantomLog>');
|
||||
};
|
||||
this.page.onLoadFinished = function(status) {
|
||||
console.log('PhantomJS: onLoadFinished. Status=', status);
|
||||
if (status === "success") {
|
||||
for (var k in self.inject) {
|
||||
var found = false;
|
||||
|
||||
Reference in New Issue
Block a user