worker.js
* @module greppy/app/cluster/master/ipc/worker
* @author Hermann Mayer <hermann.mayer92@gmail.com>
var Worker = function(options)
* Log an given worker request with userdefined content.
Worker.prototype.annotateContext = function(msg, context)
// A worker already annotated the context
if (this.master.workerContext) {
this.master.workerContext = context;
var formattedRoutes = greppy.helper.get('project')
.formatContextRoutes(context);
if ('true' === process.env.DUMP_ROUTES) {
formattedRoutes.forEach(function(route) {
logger.debug('Registered route: ' + route);