From ba2e716a8357496c3a834a8e799583ef58f95f82 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 27 Nov 2023 16:57:05 +0100 Subject: Add autorestart option to exit(1) on unresponsive upstream --- helper.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'helper.h') diff --git a/helper.h b/helper.h index 7aaece7..3b20545 100644 --- a/helper.h +++ b/helper.h @@ -33,7 +33,10 @@ typedef enum { DEBUG_TRACE = 4, } DebugLevel; +/** Debug level for logging */ extern DebugLevel _debugLevel; +/** Automatically restart on connection errors? */ +extern int _autoRestart; void plog(const DebugLevel messageLevel, char *args, ...); -- cgit v1.2.3-55-g7522