hlog: initialize instance id on startup

Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
1 files changed, 5 insertions(+), 0 deletions(-)

M hlog/hlog.c
M hlog/hlog.c +5 -0
@@ 43,6 43,7 @@ 
 #include <hlog/url.h>
 #include <hlog/util.h>
 #include <hlog/zones.h>
+#include <hlog/instance.h>
 #include <hlog-lua/xlua.h>
 
 #include "common/config.h"

          
@@ 2199,6 2200,10 @@ int main(int argc, char **argv)
 	if (ret)
 		goto err;
 
+	ret = instance_init(AT_FDCWD);
+	if (ret)
+		goto err;
+
 	ret = load_index();
 	if (ret)
 		goto err;