mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-02 15:52:14 +00:00
Merge pull request #83 from Snapmaker/dev_bury_point_alves
Dev bury point alves
This commit is contained in:
@@ -263,19 +263,19 @@ void sentryReportLogEx(SENTRY_LOG_LEVEL logLevel,
|
|||||||
funcModule.c_str(),
|
funcModule.c_str(),
|
||||||
logContent.c_str()
|
logContent.c_str()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
sentry_value_t tags = sentry_value_new_object();
|
||||||
|
|
||||||
if (!logTraceId.empty())
|
if (!logTraceId.empty())
|
||||||
{
|
|
||||||
sentry_value_t tags = sentry_value_get_by_key(event, "snapmaker_tags");
|
|
||||||
sentry_value_set_by_key(tags, "snapmaker_trace_id", sentry_value_new_string(logTraceId.c_str()));
|
sentry_value_set_by_key(tags, "snapmaker_trace_id", sentry_value_new_string(logTraceId.c_str()));
|
||||||
}
|
|
||||||
|
|
||||||
if (SENTRY_LEVEL_TRACE == sentry_msg_level)
|
if (SENTRY_LEVEL_TRACE == sentry_msg_level)
|
||||||
sentry_set_tag(BURY_POINT, "snapmaker_bury_point");
|
sentry_value_set_by_key(tags, BURY_POINT, sentry_value_new_string("snapmaker_bury_point"));
|
||||||
|
|
||||||
if (!logTagKey.empty())
|
if (!logTagKey.empty())
|
||||||
sentry_set_tag(logTagKey.c_str(), logTagValue.c_str());
|
sentry_value_set_by_key(tags, logTagKey.c_str(), sentry_value_new_string(logTagValue.c_str()));
|
||||||
|
|
||||||
|
sentry_value_set_by_key(event, "snapmaker_tags", tags);
|
||||||
sentry_capture_event(event);
|
sentry_capture_event(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user