You need to enable debuging, component debugging and then select CEC related component. That could be done within Kodi menus (maybe you will need switch to the expert mode, and then you will see it somewhere in menu).
I would bet, that by default those wouldnt be enabled (ie. when you reset to factory settings).
After appereance of a problem, you can disable it, and send logs here. That way some more experience users can examine those.