Module: sip-router
Branch: master
Commit: 47a3fdbff80ac33add93d1a6f1474c8fd890fbbb
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=47a3fdb…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Sep 27 18:09:13 2011 +0200
core: added extra debug messages when cfg command is not found
---
cfg.y | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/cfg.y b/cfg.y
index 0dc8b74..4290e41 100644
--- a/cfg.y
+++ b/cfg.y
@@ -3348,8 +3348,10 @@ cmd:
if (mod_func_action->val[0].u.data == 0) {
if (find_export_record($1, mod_func_action->val[1].u.number, 0,
&u_tmp) ) {
+ LOG(L_ERR, "misused command %s\n", $1);
yyerror("Command cannot be used in the block\n");
} else {
+ LOG(L_ERR, "cfg. parser: failed to find command %s\n", $1);
yyerror("unknown command, missing loadmodule?\n");
}
free_mod_func_action(mod_func_action);