shterm.js: Add some debugging messages.
This commit is contained in:
parent
b6bf7038ca
commit
32127f8b77
1 changed files with 2 additions and 0 deletions
|
|
@ -132,6 +132,7 @@ function getData() {
|
|||
ajaxstate.gotnothing();
|
||||
else if (response.t == "d") {
|
||||
writeData(response.d);
|
||||
debug(1, "Got packet " + response.n);
|
||||
ajaxstate.gotdata();
|
||||
}
|
||||
return;
|
||||
|
|
@ -159,6 +160,7 @@ function postResponseHandler() {
|
|||
/* It is a data message */
|
||||
if (response.d) {
|
||||
writeData(response.d);
|
||||
debug(1, "Got packet " + response.n);
|
||||
}
|
||||
ajaxstate.posted();
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue