splunk-sdk-python
splunk-sdk-python copied to clipboard
ModularInput Error handling needs to write the traceback
After one attempt and seeing the error handling you're providing I had to put in a wrapper of my own to manually write to your event writer:
except Exception as e:
import traceback
writer.log("ERROR", "{}: {}: {}".format(type(e).__name__, e, traceback.format_exc()))
Okay, we'll get that improved, hopefully in the next release.