Skip to content

Debugging

Grant Carthew edited this page Oct 2, 2016 · 3 revisions

Debugging rethinkdb-job-queue

If you like this package and want to contribute you will want to know about the debug logging feature that is built in.

Rather than rely on console.log message throughout rethinkdb-job-queue, it has the versatile debug module installed.

To improve the logging output I have customized the logging with the logger.js file.

Throughout rethinkdb-job-queue there are logger(message) statements which write to the console a detailed set of information. You can use the logging output to better understand how the package works, or to squash bugs.

If you haven't used it before, the debug module only produces console output if you set the DEBUG environment variable.

I don't recommend producing a full debug output as the result will be extreme, however if you wish to, you would do it in the following way.

> DEBUG=* npm test

A better option is to filter the debug output by using the wildcard features of debug.

Here is an example just showing the debug output for the queue-process.js file.

> DEBUG=*queue-process* npm test

There is a lot more you can do with the debug module. Please investigate further if this information is not enough.

Main

How It Works

Contributing

API

Queue Methods

Queue Properties

Queue Events

Job Methods

Job Properties

Documentation

Clone this wiki locally