[Tarantool-patches] [PATCH v5 4/4] crash: report crash data to the feedback server

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Thu Dec 24 21:22:10 MSK 2020


I applied this diff and pushed to master.

====================
--- a/src/lib/core/crash.c
+++ b/src/lib/core/crash.c
@@ -327,21 +327,17 @@ crash_report_feedback_daemon(struct crash_info *cinfo)
 	snprintf_safe("}");
 	snprintf_safe("}");
 
-	/*
-	 * Finalize the "data" key and the script.
-	 *
-	 * The timeout is choosen to be 1 second as
-	 * main feedback daemon uses.
-	 */
+	/* Finalize the "data" key and the whole dump. */
 	size = e - p;
 	snprintf_safe("}");
 	snprintf_safe("}");
 
-	pr_debug("crashinfo script: %s", head);
+	pr_debug("crash dump: %s", head);
 
 	char *exec_argv[7] = {
 		[0] = tarantool_path,
 		[1] = "-e",
+		/* Timeout 1 sec is taken from the feedback daemon. */
 		[2] = "require('http.client').post(arg[1],arg[2],{timeout=1});"
 		      "os.exit(1);",
 		[3] = "-",


More information about the Tarantool-patches mailing list