浏览代码

Add tested page url in server log

Gaël Métais 8 年之前
父节点
当前提交
29faa4932d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/server/controllers/apiController.js

+ 2 - 2
lib/server/controllers/apiController.js

@@ -67,7 +67,7 @@ var ApiController = function(app) {
 
 
             runsDatastore.updatePosition(run.runId, 0);
             runsDatastore.updatePosition(run.runId, 0);
 
 
-            debug('Launching test %s on %s', run.runId, run.params.url);
+            console.log('Launching test ' + run.runId + ' on ' + run.params.url);
 
 
             var runOptions = {
             var runOptions = {
                 screenshot: run.params.screenshot ? screenshot.getTmpFilePath() : false,
                 screenshot: run.params.screenshot ? screenshot.getTmpFilePath() : false,
@@ -195,7 +195,7 @@ var ApiController = function(app) {
 
 
         // The user doesn't want to wait for the response, sending the run ID only
         // The user doesn't want to wait for the response, sending the run ID only
         if (!run.params.waitForResponse) {
         if (!run.params.waitForResponse) {
-            console.log('Sending response without waiting.');
+            debug('Sending response without waiting.');
             res.setHeader('Content-Type', 'application/json');
             res.setHeader('Content-Type', 'application/json');
             res.send(JSON.stringify({runId: run.runId}));
             res.send(JSON.stringify({runId: run.runId}));
         }
         }