mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
allow objects for hapi's request.log (#9353)
This commit is contained in:
committed by
Masahiro Wakame
parent
ac94ea7331
commit
ccb4c316dc
@@ -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');
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user