(cobra2sentry bot) take a sentry client as input instead of a dsn

This commit is contained in:
Benjamin Sergeant
2020-03-12 12:30:58 -07:00
parent adf6aa1d6c
commit d4e1f71e3c
4 changed files with 12 additions and 7 deletions

View File

@ -17,6 +17,7 @@
#include <ixwebsocket/IXNetSystem.h>
#include <ixwebsocket/IXSocket.h>
#include <ixwebsocket/IXUserAgent.h>
#include <ixsentry/IXSentryClient.h>
#include <spdlog/spdlog.h>
#include <sstream>
#include <string>
@ -447,10 +448,12 @@ int main(int argc, char** argv)
{
bool enableHeartbeat = true;
int runtime = -1;
ix::SentryClient sentryClient(dsn);
ret = ix::cobra_to_sentry_bot(cobraConfig,
channel,
filter,
dsn,
sentryClient,
verbose,
strict,
maxQueueSize,