Skip to content

Instantly share code, notes, and snippets.

Created December 27, 2013 19:44
Show Gist options
  • Save anonymous/8151643 to your computer and use it in GitHub Desktop.
Save anonymous/8151643 to your computer and use it in GitHub Desktop.
diff --git a/src/ui.c b/src/ui.c
index 167b3c2..35ecefe 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -181,6 +181,11 @@ int BarUiPianoCall (BarApp_t * const app, PianoRequestType_t type,
PianoDestroyRequest (&req);
return 0;
}
+ FILE *debug = fopen ("debug.json", "a");
+ assert (debug != NULL);
+ fputs (req.responseData, debug);
+ fputs ("\n", debug);
+ fclose (debug);
*pRet = PianoResponse (&app->ph, &req);
if (*pRet != PIANO_RET_CONTINUE_REQUEST) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment