version 8.0.2: add severity level for log sentry events (#152)

* script to update version

* version 8.0.2: add severity level for log sentry events
This commit is contained in:
johnfoconnor authored and Benjamin Sergeant committed 2020-01-28 14:04:18 -08:00
1 parent 48ea80bb8f
commit a0c9d31389
5 files changed
+64 -1

No files matched your search

+11
View File
@@ -166,6 +166,17 @@ namespace ix
tags.append(tag);
}
}
if (msg["data"]["info"].isMember("level_str"))
{
// https://docs.sentry.io/enriching-error-data/context/?platform=python#setting-the-level
std::string level = msg["data"]["info"]["level_str"].asString();
if (level == "critical")
{
level = "fatal";
}
payload["level"] = level;
}
}
else
{