mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
fix FunctionRun log output
This commit is contained in:
parent
f04ee1ac57
commit
a0fc52deec
@ -7,14 +7,10 @@
|
||||
|
||||
module.exports = function(SPlugin, serverlessPath) {
|
||||
const path = require('path'),
|
||||
SUtils = require( path.join( serverlessPath, 'utils' ) ),
|
||||
SError = require(path.join(serverlessPath, 'ServerlessError')),
|
||||
BbPromise = require('bluebird'),
|
||||
chalk = require('chalk'),
|
||||
awsMisc = require(path.join(serverlessPath, 'utils/aws/Misc')),
|
||||
fs = require('fs');
|
||||
|
||||
BbPromise.promisifyAll(fs);
|
||||
SCli = require( path.join( serverlessPath, 'utils', 'cli'));
|
||||
|
||||
/**
|
||||
* FunctionRun Class
|
||||
@ -221,7 +217,7 @@ module.exports = function(SPlugin, serverlessPath) {
|
||||
if (reply.LogResult) {
|
||||
console.log(chalk.gray('--------------------------------------------------------------------'));
|
||||
let logResult = new Buffer(reply.LogResult, 'base64').toString();
|
||||
_.each(logResult.split('\n'), (line) => {
|
||||
logResult.split('\n').forEach( line => {
|
||||
console.log(SCli.formatLambdaLogEvent(line));
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user