splunk-sdk-python icon indicating copy to clipboard operation
splunk-sdk-python copied to clipboard

ModularInput Error handling needs to write the traceback

Open Jaykul opened this issue 12 years ago • 1 comments

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()))

Jaykul avatar May 09 '14 23:05 Jaykul

Okay, we'll get that improved, hopefully in the next release.

madhadron avatar May 14 '14 16:05 madhadron