]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
tweak
authorBrian West <brian@freeswitch.org>
Wed, 20 Feb 2008 00:30:39 +0000 (00:30 +0000)
committerBrian West <brian@freeswitch.org>
Wed, 20 Feb 2008 00:30:39 +0000 (00:30 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7705 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/loggers/mod_console/mod_console.c

index 1b79bc733270a8cf6ee433f574b687a202398fdf..62511f9f223782051d0bdd203ca542b58892a50f 100644 (file)
@@ -171,7 +171,7 @@ static int can_write(FILE *handle, int ms)
        } else {
                aok = 0;
        }
-       
+                       
        return aok;
 #else 
        return 1;
@@ -189,7 +189,7 @@ static switch_status_t switch_console_logger(const switch_log_node_t *node, swit
 
        if (failed_write) {
                if ((handle = switch_core_data_channel(SWITCH_CHANNEL_ID_LOG))) {
-                       int aok = can_write(handle, 5);
+                       int aok = can_write(handle, 100);
                        if (aok) {
                                const char *msg = "Failed to write to the console! Logging disabled! RE-enable with the 'console loglevel' command\n";
 #ifdef WIN32
@@ -230,7 +230,7 @@ static switch_status_t switch_console_logger(const switch_log_node_t *node, swit
 
                if (ok) {
 #ifndef WIN32
-                       int aok = can_write(handle, 2000);
+                       int aok = can_write(handle, 10000);
                        
                        if (!aok) {
                                hard_log_level = 0;