OpenVAS Scanner 23.32.3
debug_utils.c
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Greenbone AG
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later
4 */
5
10
11#include "debug_utils.h"
12
13#include <gvm/base/logging.h>
14#include <stdio.h> /* for snprintf */
15#include <stdlib.h>
16
22int
24{
25 char *sentry_dsn_openvas = NULL;
26 char version[96];
27
28 snprintf (version, sizeof (version), "openvas@%s", OPENVAS_VERSION);
29
30 sentry_dsn_openvas = getenv ("SENTRY_DSN_OPENVAS");
31 if (FALSE
32 == (gvm_has_sentry_support () && sentry_dsn_openvas
33 && *sentry_dsn_openvas))
34 {
35 return -1;
36 }
37 else
38 {
39 gvm_sentry_init (sentry_dsn_openvas, version);
40 return 0;
41 }
42}
int init_sentry(void)
Init sentry.
Definition debug_utils.c:23
debug_utils.c headerfile.