From e6f0072fec7ebb458ac6e7d982d6eb1defdf6453 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Mon, 25 Mar 2002 12:24:24 +0000 Subject: [PATCH] Changed some auto area create logging --- mbfido/createm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mbfido/createm.c b/mbfido/createm.c index e186ce5f..3c453996 100644 --- a/mbfido/createm.c +++ b/mbfido/createm.c @@ -46,10 +46,11 @@ int create_msgarea(char *marea, faddr *p_from) char *temp; FILE *gp; + Syslog('m', "create_msgarea(%s)", marea); temp = calloc(PATH_MAX, sizeof(char)); sprintf(temp, "%s/etc/mgroups.data", getenv("MBSE_ROOT")); if ((gp = fopen(temp, "r")) == NULL) { - WriteError("$Can't open %s", temp); + WriteError("Can't open %s", temp); free(temp); return FALSE; } @@ -97,7 +98,7 @@ int CheckEchoGroup(char *Area, int SendUplink, faddr *f) Syslog('m', "Checking echogroup %s %s", mgroup.Name, mgroup.Comment); sprintf(temp, "%s/%s", CFG.alists_path , mgroup.AreaFile); if ((ap = fopen(temp, "r")) == NULL) { - WriteError("$Can't open %s", temp); + WriteError("Echogroup %s: area taglist %s not found", mgroup.Name, temp); free(temp); return 1; } @@ -232,6 +233,7 @@ int CheckEchoGroup(char *Area, int SendUplink, faddr *f) } /* if (strcmp(tag, Area) == 0) */ } /* while (fgets(buf, 4096, ap)) */ + Syslog('m', "Area %s not found in taglist", Area); free(buf); fclose(ap); free(temp);