Index: cdr/cdr_csv.c =================================================================== RCS file: /usr/cvsroot/asterisk/cdr/cdr_csv.c,v retrieving revision 1.9.2.1 diff -u -r1.9.2.1 cdr_csv.c --- cdr/cdr_csv.c 8 Oct 2004 02:43:08 -0000 1.9.2.1 +++ cdr/cdr_csv.c 15 Dec 2004 21:35:53 -0000 @@ -33,6 +33,7 @@ #include #include +#include #include #include @@ -218,7 +219,7 @@ we open write and close the log file each time */ mf = fopen(csvmaster, "a"); if (!mf) { - ast_log(LOG_ERROR, "Unable to re-open master file %s\n", csvmaster); + ast_log(LOG_ERROR, "Unable to re-open master file %s : %s\n", csvmaster, strerror(errno)); } if (mf) { fputs(buf, mf); @@ -228,7 +229,7 @@ } if (!ast_strlen_zero(cdr->accountcode)) { if (writefile(buf, cdr->accountcode)) - ast_log(LOG_WARNING, "Unable to write CSV record to account file '%s'\n", cdr->accountcode); + ast_log(LOG_WARNING, "Unable to write CSV record to account file '%s' : %s\n", cdr->accountcode, strerror(errno)); } } return 0;