Explorar el Código

cfg framework: log message added

cfg_set_now() prints out the id of the group which is modified.
Miklos Tirpak hace 15 años
padre
commit
1e3ac66d09
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      cfg/cfg_ctx.c

+ 3 - 0
cfg/cfg_ctx.c

@@ -584,6 +584,9 @@ int cfg_set_now(cfg_ctx_t *ctx, str *group_name, unsigned int *group_id, str *va
 			group_name->len, group_name->s,
 			var_name->len, var_name->s,
 			((str *)val)->len, ((str *)val)->s);
+	if (group_id)
+		LOG(L_INFO, "INFO: cfg_set_now(): group id = %u\n",
+			*group_id);
 
 	convert_val_cleanup();
 	return 0;