Skip to content

Commit

Permalink
Merge pull request #2467 from Snapstromegon/#2198-passthrough-logging
Browse files Browse the repository at this point in the history
Add passthrough logging filter #2198
  • Loading branch information
zachleat committed Jun 30, 2022
2 parents 85a9759 + 5f721af commit e0c6637
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/defaultConfig.js
Expand Up @@ -14,7 +14,10 @@ module.exports = function (config) {
let pathPrefix = pathPrefixOverride || templateConfig.getPathPrefix();
return urlFilter.call(this, url, pathPrefix);
});
config.addFilter("log", console.log);
config.addFilter("log", (input, ...messages) => {
console.log(input, ...messages);
return input;
});

config.addFilter("serverlessUrl", serverlessUrlFilter);

Expand Down

0 comments on commit e0c6637

Please sign in to comment.