path BUGFIX keep previous logging info
diff --git a/src/path.c b/src/path.c
index bceb3ef..bc4552a 100644
--- a/src/path.c
+++ b/src/path.c
@@ -860,7 +860,7 @@
 
     /* remember original context node */
     cur_node = ctx_node;
-    LOG_LOCINIT(cur_node, NULL, NULL, NULL);
+    LOG_LOCSET(cur_node, NULL, NULL, NULL);
 
     if (oper == LY_PATH_OPER_OUTPUT) {
         getnext_opts = LYS_GETNEXT_OUTPUT;