Skip to content

Commit

Permalink
request.id is not request.info.id since Hapi 17
Browse files Browse the repository at this point in the history
Since Hapi 17, request.id was moved to request.info.id.

Source: hapijs/hapi#3658

> Moved request.id to request.info.id.
  • Loading branch information
Sim authored and arb committed Feb 3, 2018
1 parent fd8acbc commit 699c4ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/utils.js
Expand Up @@ -33,7 +33,7 @@ class RequestError {

this.event = 'error';
this.timestamp = request.info.received;
this.id = request.id;
this.id = request.info.id;
this.url = request.url;
this.method = request.method;
this.pid = process.pid;
Expand Down Expand Up @@ -63,7 +63,7 @@ class RequestSent {

this.event = 'response';
this.timestamp = request.info.received;
this.id = request.id;
this.id = request.info.id;
this.instance = server.info.uri;
this.labels = server.settings.labels;
this.method = request.method;
Expand Down Expand Up @@ -139,7 +139,7 @@ class RequestLog {
this.tags = event.tags;
this.data = event.data;
this.pid = process.pid;
this.id = request.id;
this.id = request.info.id;
this.method = request.method;
this.path = request.path;
this.config = internals.extractConfig(request);
Expand Down

0 comments on commit 699c4ea

Please sign in to comment.