We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d9df90 commit ca5364bCopy full SHA for ca5364b
src/function-value-plugin.js
@@ -6,17 +6,14 @@ const defaultVariableResolverOptions = {
6
isDisabledAtPrepopulation: true
7
};
8
9
-const format = (value, result) =>
10
- `[${name}] \${${value}} => ${JSON.stringify(result)}`;
11
-
12
export class FunctionValuePlugin {
13
constructor(serverless) {
14
if (!process.env.SLS_DEBUG) {
15
this._log = () => { };
16
} else {
17
- const log = (value, result) => serverless.cli.log(format(value, result));
18
19
- this._log = memoize(log);
+ this._log = memoize((value, result) => serverless.cli.log(
+ `[${name}] \${${value}} => ${JSON.stringify(result)}`
+ ));
20
}
21
22
this._naming = serverless.getProvider('aws').naming;
0 commit comments