diff --git a/changelogs/unreleased/bug-report-url.md b/changelogs/unreleased/bug-report-url.md new file mode 100644 index 0000000000000000000000000000000000000000..581fbec46d894e49fc2d6f8a7ef7980c06f1fbfd --- /dev/null +++ b/changelogs/unreleased/bug-report-url.md @@ -0,0 +1,8 @@ +## feature/core + +When crashing a message will now direct users to report bugs at support@picodata.io. +This info can also be changed at build time by adding a preprocessor definition +for `PICODATA_BUG_REPORT_INFO`, e.g. by adding this line to a `CMakeLists.txt`: +```cmake +add_definitions(-DPICODATA_BUG_REPORT_INFO="support@picodata.io") +``` diff --git a/src/lib/core/crash.c b/src/lib/core/crash.c index 55825d3db522a624d399dc8c13db4740844db853..9be7390969a0563a5140dc178959987dd2dcf051 100644 --- a/src/lib/core/crash.c +++ b/src/lib/core/crash.c @@ -16,6 +16,10 @@ #include "crash.h" #include "say.h" +#ifndef PICODATA_BUG_REPORT_INFO +#define PICODATA_BUG_REPORT_INFO "support@picodata.io" +#endif + /** Storage for crash_collect function return value. */ static struct crash_info crash_info; @@ -143,8 +147,7 @@ crash_report_stderr(struct crash_info *cinfo) #endif /* HAS_GREG */ fprintf(stderr, "Current time: %u\n", (unsigned)time(0)); - fprintf(stderr, "Please file a bug at " - "https://github.com/tarantool/tarantool/issues\n"); + fprintf(stderr, "Please file a bug at " PICODATA_BUG_REPORT_INFO "\n"); #ifdef ENABLE_BACKTRACE fprintf(stderr, "Attempting backtrace... Note: since the server has "