mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
minor mods
This commit is contained in:
parent
48d6b4bcba
commit
7ff2e51b17
@ -65,7 +65,6 @@ const getMessage = msg => {
|
||||
}
|
||||
|
||||
module.exports = msg => {
|
||||
console.log(msg)
|
||||
const processedMsg = getMessage(msg);
|
||||
if (processedMsg) {
|
||||
log(`${prefix}${processedMsg}${os.EOL}`);
|
||||
|
||||
@ -14,6 +14,7 @@ const registerFunctionsToEventGateway = require('./registerFunctionsToEventGatew
|
||||
|
||||
const splitLinesAndLog = data => {
|
||||
const str = data.toString('utf8');
|
||||
console.log(str)
|
||||
// TODO makes sure this doesn't affect escaped newlines inside event content
|
||||
const lines = str.split(/\r?\n/g);
|
||||
_.forEach(lines, line => {
|
||||
@ -29,10 +30,10 @@ function manageEventGateway(service, eventsPort, configurationPort, localEmulato
|
||||
logServerless('Initializing Event Gateway...');
|
||||
|
||||
const args = [
|
||||
`--embed-data-dir=${getTmpDirPath()}`,
|
||||
`-embed-data-dir=${getTmpDirPath()}`,
|
||||
'-dev',
|
||||
'-log-level=debug',
|
||||
'--dev',
|
||||
'--log-format=json',
|
||||
'-log-format=json',
|
||||
`-config-port=${configurationPort}`,
|
||||
`-events-port=${eventsPort}`,
|
||||
];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user