Skip to content

Port is missing from log messages #925

Closed
@pmishev

Description

@pmishev

Summary of problem or feature request

I can see that in v.7 the port has disappeared from the host. After further digging I see it's been specifically requested and fixed in #548 & #782

Perhaps it is a valid use case (although I don't really understand it), but the change seems to be causing problems elsewhere - now the port is missing from the log messages too.

Code snippet of problem

Here is an example of what is sent to the logger now:

array(8) {
  ["message"]=>
  string(66) "curl -XDELETE 'http://127.0.0.1/sineflow-esb-test-bar?pretty=true'"
  ["context"]=>
  array(0) {
  }
  ["level"]=>
  int(200)
  ["level_name"]=>
  string(4) "INFO"
  ["channel"]=>
  string(10) "sfes_trace"
  ["datetime"]=>
  object(DateTime)#108 (3) {
    ["date"]=>
    string(26) "2019-08-03 12:53:10.801795"
    ["timezone_type"]=>
    int(3)
    ["timezone"]=>
    string(15) "Europe/Helsinki"
  }
  ["extra"]=>
  array(1) {
    ["backtrace"]=>
    NULL
  }
  ["formatted"]=>
  string(112) "[2019-08-03 12:53:10] sfes_trace.INFO: curl -XDELETE 'http://127.0.0.1/sineflow-esb-test-bar?pretty=true' [] []
"
}
array(8) {
  ["message"]=>
  string(9) "Response:"
  ["context"]=>
  array(5) {
    ["response"]=>
    array(1) {
      ["acknowledged"]=>
      bool(true)
    }
    ["method"]=>
    string(6) "DELETE"
    ["uri"]=>
    string(38) "http://127.0.0.1/sineflow-esb-test-bar"
    ["HTTP code"]=>
    int(200)
    ["duration"]=>
    float(0.026726)
  }
  ["level"]=>
  int(100)
  ["level_name"]=>
  string(5) "DEBUG"
  ["channel"]=>
  string(10) "sfes_trace"
  ["datetime"]=>
  object(DateTime)#111 (3) {
    ["date"]=>
    string(26) "2019-08-03 12:53:10.802988"
    ["timezone_type"]=>
    int(3)
    ["timezone"]=>
    string(15) "Europe/Helsinki"
  }
  ["extra"]=>
  array(1) {
    ["backtrace"]=>
    NULL
  }
  ["formatted"]=>
  string(189) "[2019-08-03 12:53:10] sfes_trace.DEBUG: Response: {"response":{"acknowledged":true},"method":"DELETE","uri":"http://127.0.0.1/sineflow-esb-test-bar","HTTP code":200,"duration":0.026726} []
"
}

Based on this information, I should be able to type in the terminal:

curl -XDELETE 'http://127.0.0.1/sineflow-esb-test-bar?pretty=true'

But of course this doesn't work, as it's trying to reach port 80, instead of 9200

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions