log UPDATE input logging cleared and updated
diff --git a/src/parser_yang.c b/src/parser_yang.c
index e28b3ae..522aae4 100644
--- a/src/parser_yang.c
+++ b/src/parser_yang.c
@@ -4713,7 +4713,7 @@
     (*context)->parsed_mods = main_ctx->parsed_mods;
     ly_set_add((*context)->parsed_mods, mod_p, 1, NULL);
 
-    LOG_LOCINIT(NULL, NULL, NULL, in);
+    LOG_LOCSET(NULL, NULL, NULL, in);
 
     /* skip redundant but valid characters at the beginning */
     ret = skip_redundant_chars(*context);
@@ -4783,7 +4783,7 @@
     mod_p->mod = mod;
     ly_set_add((*context)->parsed_mods, mod_p, 1, NULL);
 
-    LOG_LOCINIT(NULL, NULL, NULL, in);
+    LOG_LOCSET(NULL, NULL, NULL, in);
 
     /* skip redundant but valid characters at the beginning */
     ret = skip_redundant_chars(*context);