This PR fixes using the console to log. Instead, we should use Kodi APIs.
Console logging was added for the CI script in case it needed to run code here in a shell. However, we currently don't do this. Also, we should use the add-on API to log inside an add-on. Therefore, fixing the logging pipe is the best approach.
How has this been tested?
Tested by pushing keyboard keys inside DOSBox, which previously didn't log the debug output in console mode. After applying the patch, debug log lines successfully log:
Description
This PR fixes using the console to log. Instead, we should use Kodi APIs.
Console logging was added for the CI script in case it needed to run code here in a shell. However, we currently don't do this. Also, we should use the add-on API to log inside an add-on. Therefore, fixing the logging pipe is the best approach.
How has this been tested?
Tested by pushing keyboard keys inside DOSBox, which previously didn't log the debug output in console mode. After applying the patch, debug log lines successfully log: