summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-04-03 17:57:10 +0000
committerBenny Prijono <bennylp@teluu.com>2007-04-03 17:57:10 +0000
commit6bba003138c84d88d238bf5e888c0669a7b9e7c9 (patch)
tree8fb1eee23c756850da8c11f4e9f22c5f197a03fd
parent2c4d20010b0c284229d625584bae1c933a20151f (diff)
Undo ticket #184: removed pj_file_flush() from pjsua-lib since it slows down application substantially!
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/pjproject-0.5-stable@1137 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r--pjsip/src/pjsua-lib/pjsua_core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_core.c b/pjsip/src/pjsua-lib/pjsua_core.c
index 4da868bc..a0e8d6fa 100644
--- a/pjsip/src/pjsua-lib/pjsua_core.c
+++ b/pjsip/src/pjsua-lib/pjsua_core.c
@@ -290,7 +290,9 @@ static void log_writer(int level, const char *buffer, int len)
if (pjsua_var.log_file) {
pj_ssize_t size = len;
pj_file_write(pjsua_var.log_file, buffer, &size);
- pj_file_flush(pjsua_var.log_file);
+ /* This will slow things down considerably! Don't do it!
+ pj_file_flush(pjsua_var.log_file);
+ */
}
if (level <= (int)pjsua_var.log_cfg.console_level) {