mirror of
https://github.com/jlengrand/bugsink.git
synced 2026-03-10 08:01:17 +00:00
Minidump API Endpoint: custom/extra fields support
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from bugsink.utils import nc_rnd
|
||||
from bugsink.utils import nc_rnd, set_path
|
||||
from tags.utils import EVENT_DATA_CONVERSION_TABLE, CONTEXT_CONVERSION_TABLE
|
||||
|
||||
|
||||
@@ -27,15 +27,6 @@ def random_postfix():
|
||||
return "".join([chr(ord("A") + int(c)) for c in str(unevenly_distributed_number)])
|
||||
|
||||
|
||||
def set_path(data, path, v):
|
||||
d = data
|
||||
for part in path[:-1]:
|
||||
if part not in d:
|
||||
d[part] = {}
|
||||
d = d[part]
|
||||
d[path[-1]] = v
|
||||
|
||||
|
||||
def handle_upload_tags(event_data, tags):
|
||||
if "tags" not in event_data:
|
||||
event_data["tags"] = {}
|
||||
|
||||
Reference in New Issue
Block a user