allow objects for hapi's request.log (#9353)

This commit is contained in:
Robin Joseph
2016-05-21 08:26:37 -07:00
committed by Masahiro Wakame
parent ac94ea7331
commit ccb4c316dc
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -79,6 +79,7 @@ server.route({
method: 'GET',
path: '/hello',
handler: function (request: Hapi.Request, reply: Function) {
request.log('info', { route: '/hello' }, Date.now());
reply('hello world');
}
});