jedireza/aqua

strange logs

walshe opened this issue · 4 comments

hi,

I have deployed an aqua based app to Google app engine. In the logs there I see lots of the following entries written to stderr and wonerded if you had any idea whats causing them .. or how I could add some other logging in the server to better tell me what path is trying to be accessed:

5:34:36.000
{"msec":0.05533400003332645,"error":"Not Found","data":{"data":null,"isBoom":true,"isServer":false,"output":{"statusCode":404,"payload":{"statusCode":404,"error":"Not Found","message":"Not Found"},"headers":{}},"message":"Not Found"}}
Expand all | Collapse all {
 insertId:  "yesdnqg3fpbkva"   
 labels: {
  appengine.googleapis.com/instance_name:  "aef-nexrep-v1--01-cq5z"    
  compute.googleapis.com/resource_id:  "1215582171988678285"    
  compute.googleapis.com/resource_name:  "0741c5e3b2e8"    
  compute.googleapis.com/zone:  "us-central1-c"    
 }
 logName:  "projects/vroom-custsrv-internal-qa-v1/logs/appengine.googleapis.com%2Fstderr"   
 receiveTimestamp:  "2017-11-08T20:34:37.154285823Z"   
 resource: {
  labels: {
   module_id:  "nexrep"     
   project_id:  "vroom-custsrv-internal-qa-v1"     
   version_id:  "v1-01"     
  }
  type:  "gae_app"    
 }
 textPayload:  "    {"msec":0.05533400003332645,"error":"Not Found","data":{"data":null,"isBoom":true,"isServer":false,"output":{"statusCode":404,"payload":{"statusCode":404,"error":"Not Found","message":"Not Found"},"headers":{}},"message":"Not Found"}}
"   
 timestamp:  "2017-11-08T20:34:36Z"   
}

Sorry, I have no idea. For logging I'd take a look at good.

logging is not really my issue, its more where i can put some logging to print the incoming request urls for the path that is not found

Yep, good will help you with that.

I think this is what im after

server.on('response', function (request) {
            console.log(request.info.remoteAddress + ': ' + request.method.toUpperCase() + ' ' + request.url.path + ' --> ' + request.response.statusCode);
        });