Ticket #7900: 0001-Log-to-console-when-debug-option-is-enabled.patch

File 0001-Log-to-console-when-debug-option-is-enabled.patch, 853 bytes (added by gsathya, 7 years ago)
  • proxy/flashproxy.js

    From 69e488d38cc0169e6d8922a418b6c7898900ddc8 Mon Sep 17 00:00:00 2001
    From: Sathyanarayanan Gunasekaran <gsathya.ceg@gmail.com>
    Date: Thu, 10 Jan 2013 00:54:37 +0530
    Subject: [PATCH] Log to console when debug option is enabled
    
    ---
     proxy/flashproxy.js |    1 +
     1 files changed, 1 insertions(+), 0 deletions(-)
    
    diff --git a/proxy/flashproxy.js b/proxy/flashproxy.js
    index 5c8a82f..f997e1c 100644
    a b function puts(s) { 
    9292        /* http://www.w3.org/TR/cssom-view/#element-scrolling-members */
    9393        at_bottom = (debug_div.scrollTop + debug_div.clientHeight === debug_div.scrollHeight);
    9494        debug_div.appendChild(document.createTextNode(s + "\n"));
     95        console.debug(s);
    9596        if (at_bottom)
    9697            debug_div.scrollTop = debug_div.scrollHeight;
    9798    }