- new
statsd
default target!
winston
no longer a dependency. If you want logging, you'll need to install a logging package yourself. More info:thehelp-log-shim
Breaking:
- Key method on
LastDitch
object is nowgo()
instead ofsend()
- Default location for crash.log is the current working directory (instead of inside ./logs/)
- Environment variables changed; now all prefixed with 'THEHELP_'
Other:
- Now use
thehelp-messaging
1.0.0 - Instead of always appending to log file and sending SMS, move to configurable targets:
stderr
,crashLog
,sendSMS
,sendEmail
.stderr
andcrashLog
are on by default. - Now support calling root method (
LastDitch.go
) with two arguments or just one argument and no callback. - Further bullet-proofing: handle null
err
, missing targets, etc. - Comprehensive test coverage
- Include machine hostname in text message
- Guaranteed callback if we can't append to the crash log
- Guaranteed callback if the
twilio.send
call never returns, or takes longer than 2 seconds - Update dev dependencies
- Pare down what's in the npm package
- Update minor version:
async
- Update dev dependencies
- Removing direct support for
GracefulWorker
and keeping track of whether we're actively sending to Twilio; now expect users to rely on the callback. - Additional documentation
- Default send function returned on
require()
of this module LastDitch
class available for direct usesetupTopLevelHandler()
to make it easy to set up an 'uncaughtException' handler