comparison extensions/app_acct/acct_conf.y @ 1264:abf1e51047a1

Display errors in app_acct at error level
author Sebastien Decugis <sdecugis@freediameter.net>
date Mon, 12 May 2014 00:16:19 +0800
parents 1af09cc156d6
children 25fad6714991
comparison
equal deleted inserted replaced
1263:285287f22041 1264:abf1e51047a1
174 } 174 }
175 175
176 /* Function to report the errors */ 176 /* Function to report the errors */
177 void yyerror (YYLTYPE *ploc, char * conffile, char const *s) 177 void yyerror (YYLTYPE *ploc, char * conffile, char const *s)
178 { 178 {
179 TRACE_DEBUG(INFO, "Error in configuration parsing"); 179 LOG_E( "Error in configuration parsing");
180 180
181 if (ploc->first_line != ploc->last_line) 181 if (ploc->first_line != ploc->last_line)
182 fd_log_debug("%s:%d.%d-%d.%d : %s", conffile, ploc->first_line, ploc->first_column, ploc->last_line, ploc->last_column, s); 182 LOG_E("%s:%d.%d-%d.%d : %s", conffile, ploc->first_line, ploc->first_column, ploc->last_line, ploc->last_column, s);
183 else if (ploc->first_column != ploc->last_column) 183 else if (ploc->first_column != ploc->last_column)
184 fd_log_debug("%s:%d.%d-%d : %s", conffile, ploc->first_line, ploc->first_column, ploc->last_column, s); 184 LOG_E("%s:%d.%d-%d : %s", conffile, ploc->first_line, ploc->first_column, ploc->last_column, s);
185 else 185 else
186 fd_log_debug("%s:%d.%d : %s", conffile, ploc->first_line, ploc->first_column, s); 186 LOG_E("%s:%d.%d : %s", conffile, ploc->first_line, ploc->first_column, s);
187 } 187 }
188 188
189 static struct acct_conf_avp avpdata; 189 static struct acct_conf_avp avpdata;
190 190
191 %} 191 %}
"Welcome to our mercurial repository"