Skip to content
This repository was archived by the owner on Dec 24, 2024. It is now read-only.

1.1.0: Error handler improvements

Choose a tag to compare

@homer0 homer0 released this 01 Feb 09:27

v1.1.0 Features

Pull request with the detailed changes

Error handler improvements

  • A method stopListening() was added in order to stop the service from listening for more errors.
  • A second parameter to the constructor was added to specify whether or not process.exit should be called after handling an error.
  • A new Jimple provider was added to able to set the flag for process.exit: errorHandlerWithOptions. It only has one parameter and it's the flag value.
  • The Jimple providers now depend by default on the logger service, and if is not available then they will fallback to appLogger.

Regarding the last item of the list, having both logger and appLogger registered on the container is pretty uncommon that's why I'm considering this an edge case and a non-breaking version.