changeset 12:9e1d83f50c9e

shterm.js: Add some debugging messages.
author John "Elwin" Edwards <elwin@sdf.org>
date Sun, 13 May 2012 08:47:35 -0700
parents 481dcee353c9
children bf7c26d0b66d
files shterm.js
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/shterm.js	Fri May 11 13:33:48 2012 -0700
+++ b/shterm.js	Sun May 13 08:47:35 2012 -0700
@@ -132,6 +132,7 @@
         ajaxstate.gotnothing();
       else if (response.t == "d") {
         writeData(response.d);
+        debug(1, "Got packet " + response.n);
         ajaxstate.gotdata();
       }
       return;
@@ -159,6 +160,7 @@
     /* It is a data message */
     if (response.d) {
       writeData(response.d);
+      debug(1, "Got packet " + response.n);
     }
     ajaxstate.posted();
     return;