Namespace: Debug

Debug

Methods

(static) error(error)

Log serious errors that should be examined. We support passing along request info.

Parameters:
Name Type Description
error string | object

If a string, simply log it as such to libreviews:error via the debug module. If an object, we expect it to be of the form below.

Properties
Name Type Description
req object

the Express request

error Error

the original error object

Source: