Commit d960fa9c authored by Jarrod's avatar Jarrod 💬

Remove unneccessary logging

parent e355d3fb
......@@ -2,12 +2,10 @@ const mcache = require('memory-cache');
module.exports = (req, res, next) => {
const logLevel = sails.hooks.ahoy.logLevel || 'debug'
sails.log[logLevel]('Running ahoy caching middleware');
let routeConfig = sails.config.routes[ req.method + ' ' + req.path ];
let duration = routeConfig ? routeConfig.cache : null;
if (!duration) {
sails.log[logLevel](' - Not running cache middleware');
return next();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment