fix order of ops to enable logging sooner

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13556 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2009-06-02 22:03:33 +00:00
parent f2495ec8e0
commit 4577ec8788
3 changed files with 23 additions and 15 deletions
+2 -2
View File
@@ -1287,8 +1287,8 @@ static int preprocess(const char *cwd, const char *file, int write_fd, int rleve
char *bp = expand_vars(buf, ebuf, sizeof(ebuf), &cur, &err);
line++;
if (err && stderr) {
fprintf(stderr, "Error [%s] in file %s line %d\n", err, file, line);
if (err) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error [%s] in file %s line %d\n", err, file, line);
}
/* we ignore <include> or </include> for the sake of validators as well as <?xml version="1.0"?> type stuff */