log UPDATE input logging cleared and updated
diff --git a/src/xml.c b/src/xml.c
index 4be93dd..a0994bd 100644
--- a/src/xml.c
+++ b/src/xml.c
@@ -904,7 +904,7 @@
     xmlctx->ctx = ctx;
     xmlctx->in = in;
 
-    LOG_LOCINIT(NULL, NULL, NULL, in);
+    LOG_LOCSET(NULL, NULL, NULL, in);
 
     /* parse next element, if any */
     LY_CHECK_GOTO(ret = lyxml_next_element(xmlctx, &xmlctx->prefix, &xmlctx->prefix_len, &xmlctx->name,