summaryrefslogtreecommitdiff
path: root/pjsip
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-04-03 17:55:08 +0000
committerBenny Prijono <bennylp@teluu.com>2007-04-03 17:55:08 +0000
commitf5988bdf4d4a05af927daed704ffc42b429b9fbf (patch)
tree15941964bea5587f9629d0396cb7c71d2e659398 /pjsip
parent11af5d6767e0dcbc4884fb66209428cb6c5c352c (diff)
Undo ticket #185: removed pj_file_flush() from pjsua-lib since it slows down the application alot!
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1136 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip')
-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 81723484..e40882d5 100644
--- a/pjsip/src/pjsua-lib/pjsua_core.c
+++ b/pjsip/src/pjsua-lib/pjsua_core.c
@@ -298,7 +298,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) {