Skip to content

Commit

Permalink
simpler output
Browse files Browse the repository at this point in the history
  • Loading branch information
mafintosh committed Nov 8, 2016
1 parent 928465e commit d2e830b
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,15 @@ function summary (server, write) {
const env = process.env.NODE_ENV || 'undefined'

write({
level: 'info',
name: 'url',
url: url,
type: 'connect'
})

write({
level: 'info',
name: 'server',
message: {
port: port,
env: env,
pid: process.pid
}
port: port,
env: env,
pid: process.pid,
url: url
})
}
}

function defaultWrite (obj) {
const msg = JSON.stringify(obj)
const msg = JSON.stringify({level: 'info', name: 'server', message: obj})
process.stdout.write(msg + '\n')
}

0 comments on commit d2e830b

Please sign in to comment.