Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,12 @@ extension.initMaster = function(master) {
master.setup({ silent : true });

IO_STREAMS.forEach(function(streamName) {
if (typeof this.config[streamName] === 'string' && this.config[streamName].length > 0) {
const streamConfig = this.config.get(streamName);

if (typeof streamConfig === 'string' && streamConfig.length > 0) {
// redirect children output to file through TimestampStream
this.setupStream(streamName, this.config.resolve(streamName));
} else if (this.config[streamName]) {
} else if (streamConfig) {
// redirect children output to master output streams through TimestampStream
this.setupStdioTransform(streamName);
}
Expand Down