diff --git a/README.md b/README.md index f049071..c2e8296 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,8 @@ server.register([ - **preSend** - *(optional)* enables modification of log message ## Release History +- **v3.2.1** (2016-08-19) + - disable plugin option validation as it is a breaking change - **v3.2.0** (2016-08-18) - added optional `preSend(req, log)` function to enable modification of log message - **v3.1.0** (2015-11-14) diff --git a/lib/plugin.js b/lib/plugin.js index 2449dba..4204944 100644 --- a/lib/plugin.js +++ b/lib/plugin.js @@ -1,15 +1,15 @@ 'use strict'; -var joi = require('joi'); +//var joi = require('joi'); var logger = require('./logger'); module.exports = { register: function (server, options, next) { - var validation = joi.validate(options, require('./schema')); - - if(validation.error) { - return next(validation.error); - } + // var validation = joi.validate(options, require('./schema')); + // + // if(validation.error) { + // return next(validation.error); + // } logger.config(options, function(){ server.on('tail', function(request){ diff --git a/package.json b/package.json index 5553ee7..7b1bd92 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hapi-ot-logger", - "version": "3.2.0", + "version": "3.2.1", "description": "logger conforming to ot standards", "main": "index.js", "scripts": { diff --git a/tests/plugin (attributes).js b/tests/plugin (attributes).js index 6d9ce90..97dd408 100644 --- a/tests/plugin (attributes).js +++ b/tests/plugin (attributes).js @@ -9,6 +9,6 @@ describe('plugin (attributes)', function() { }); it('should contain version', function() { - expect(plugin.register.attributes.version).to.equal('3.2.0'); + expect(plugin.register.attributes.version).to.equal('3.2.1'); }); }); diff --git a/tests/plugin (option validation).js b/tests/plugin (option validation).js index cb952e1..59bad05 100644 --- a/tests/plugin (option validation).js +++ b/tests/plugin (option validation).js @@ -25,7 +25,7 @@ var validConfig = { } }; -describe('plugin (option validation)', function() { +describe.skip('plugin (option validation)', function() { describe('given null servicetype', function() { it('should return error', function(done) { var config = hoek.applyToDefaults(validConfig, { servicetype: null }, true);