eiffel-community/eiffel-intelligence

EventHandler cannot resolve server port

Closed this issue · 2 comments

Description

EventHandler isn't able to get the application server port through the local.server.port property and logs it as null.

Motivation

We want the port to be properly logged.

Exemplification

Benefits

Possible Drawbacks

I noticed this behavior when I deployed an Eiffel Intelligence instance in a Kubernetes environment as a Docker container - perhaps it only occurs when Eiffel Intelligence is deployed as a Docker container?
A tip is to try with starting up Eiffel Intelligence in different ways, e.g: mvn spring-boot:run, running the java war file and building a docker image and running that.

This is what the logs look like today:

2020-04-17 14:52:55.158 DEBUG 28 --- [Handler-43-null] com.ericsson.ei.handlers.EventHandler    : Thread id 230 spawned for EventHandler on port: null
2020-04-17 14:52:55.158 DEBUG 28 --- [Handler-43-null] com.ericsson.ei.handlers.EventHandler    : Event "aaaaaaaa-bbbb-5ccc-8ddd-eeeeeeeeeee0" received on port null
2020-04-17 14:52:55.159 DEBUG 28 --- [Handler-43-null] com.ericsson.ei.handlers.EventHandler    : Event "aaaaaaaa-bbbb-5ccc-8ddd-eeeeeeeeeee0" processed on port null