__init__ function accept kwargs that use json.dumps(obj, **kwargs)
only add debug when exist traceback and exception