Fix socket ID handling in EventLogging module

Change-Id: I85f15816e8201411519a28e9945ff14dbc766624