Lagrange [work/v1.10]

Android: Logging events

=> 958791305cfde2404e604d7f1f66d5fe0502e565

diff --git a/src/app.c b/src/app.c
index 73cc35ee..f5f7ae2b 100644
--- a/src/app.c
+++ b/src/app.c
@@ -71,6 +71,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
 #if defined (iPlatformAppleMobile)
 #   include "ios.h"
 #endif
+#if defined (iPlatformAndroidMobile)
+#include 
+#endif
 #if defined (iPlatformMsys)
 #   include "win32.h"
 #endif
@@ -1690,13 +1693,20 @@ void postCommand_Root(iRoot *d, const char *command) {
     ev.user.data1 = strdup(command);
     ev.user.data2 = d; /* all events are root-specific */
     SDL_PushEvent(&ev);
+    iWindow *win = get_Window();
+#if defined (iPlatformAndroid)
+    SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, "%s[command] {%d} %s",
+                app_.isLoadingPrefs ? "[Prefs] " : "",
+                (d == NULL || win == NULL ? 0 : d == win->roots[0] ? 1 : 2),
+                command);
+#else
     if (app_.commandEcho) {
-        iWindow *win = get_Window();
         printf("%s[command] {%d} %s\n",
                app_.isLoadingPrefs ? "[Prefs] " : "",
                (d == NULL || win == NULL ? 0 : d == win->roots[0] ? 1 : 2),
                command); fflush(stdout);
     }
+#endif
 }
 
 void postCommandf_Root(iRoot *d, const char *command, ...) {
Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/work%2Fv1.10/cdiff/958791305cfde2404e604d7f1f66d5fe0502e565
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
188.450336 milliseconds
Gemini-to-HTML Time
0.219472 milliseconds

This content has been proxied by September (3851b).