NAME

Plack::Middleware::LogHarakiri - log when a process is killed

VERSION

0.0200

SYNOPSIS

use Plack::Builder;

builder {

  enable "LogHarakiri";
  enable "SizeLimit",  ...;

  $app;
};

INSTALLATION

See How to install CPAN modules.

Required Modules

This distribution requires Perl v5.8.8.

This distribution requires the following modules:

RECENT CHANGES

Documentation

  • Generate README from POD using Pod::Readme

  • Documented format of the warning message

Enhancements

  • Include the REQUEST_URI in the log message

Other

  • Add Travis-CI to repo for smoke testing

See the Changes file for a longer revision history.

DESCRIPTION

This middleware is a companion to Plack::Middleware::SizeLimit that emits a warning when a process is killed.

When it detects that the current process is killed, it will emit a warning with diagnostic information of the form:

pid %d committed harakiri (size: %d, shared: %d, unshared: %d) at %s

Note that this middleware must be enabled before plugins that set the "harakiri" flag.

SEE ALSO

PSGI::Extensions

AUTHOR

Robert Rothenberg rrwo@thermeon.com

COPYRIGHT

Copyright 2015, Thermeon Worldwide, PLC.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.