Skip to content
This repository has been archived by the owner on Mar 10, 2021. It is now read-only.

Commit

Permalink
Don't use log rotation as it has problem with process.exit.
Browse files Browse the repository at this point in the history
  • Loading branch information
hajoeichler committed Mar 11, 2014
1 parent 61ad9b7 commit eceba97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coffee/run.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ argv = require('optimist')
logger = new Logger
streams: [
{ level: 'error', stream: process.stderr }
{ level: argv.logLevel, type: 'rotating-file', period: '1d', count: 90, path: "#{argv.logDir}/sphere-stock-sync-#{argv.projectKey}.log" }
{ level: argv.logLevel, path: "#{argv.logDir}/sphere-stock-sync-#{argv.projectKey}.log" }
]

options =
Expand Down

4 comments on commit eceba97

@emmenko
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it work like that with process.exit?

@hajoeichler
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, no difference ;(

@emmenko
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then we need to handle process.exit differently

@hajoeichler
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jep, will adjust the code.

Please sign in to comment.