Log that we are unregistering cdr module (bug 1460)
authorJames Golovich <james@gnuinter.net>
Wed, 21 Apr 2004 04:25:44 +0000 (04:25 +0000)
committerJames Golovich <james@gnuinter.net>
Wed, 21 Apr 2004 04:25:44 +0000 (04:25 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2729 65c4cc65-6c06-0410-ace0-fbb531ad65f3

cdr.c

diff --git a/cdr.c b/cdr.c
index 38ff053..b80e395 100755 (executable)
--- a/cdr.c
+++ b/cdr.c
@@ -20,6 +20,7 @@
 #include <asterisk/logger.h>
 #include <asterisk/callerid.h>
 #include <asterisk/causes.h>
+#include <asterisk/options.h>
 #include <unistd.h>
 #include <stdlib.h>
 #include <string.h>
@@ -94,6 +95,8 @@ void ast_cdr_unregister(char *name)
                }
                i = i->next;
        }
+       if (option_verbose > 1)
+               ast_verbose(VERBOSE_PREFIX_2 "Unregistered '%s' CDR backend\n", name);
        ast_mutex_unlock(&cdrlock);
        if (i) 
                free(i);