Skip to content

Commit

Permalink
#141: log all clarify calls, including failed ones
Browse files Browse the repository at this point in the history
  • Loading branch information
robhrt7 committed Sep 8, 2015
1 parent 0746042 commit f2d04ca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions core/middlewares/clarify.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,11 @@ module.exports.process = function(req, res, next) {
var specID = specUtils.getSpecIDFromUrl(parsedPath.pathToSpec);
var specHasHTMLAPIData = !!parseHTMLData.getByID(specID);

trackStats.page({
pageName: 'clarify',
sessionID: trackStats.getSessionID(req)
});

if (!specInfo) {
res.send('Clarify did not found any information about requested spec, please check URL or update file-tree restarting the app.');
return;
Expand Down Expand Up @@ -314,11 +319,6 @@ module.exports.process = function(req, res, next) {
html = msg;
}

trackStats.page({
pageName: 'clarify',
sessionID: trackStats.getSessionID(req)
});

res.send(html);
}).fail(function(err) {
var msg = 'ERROR: Could not find requested or default template for Clarify';
Expand Down

0 comments on commit f2d04ca

Please sign in to comment.