Make logging configurable
[citadel.git] / citadel / event_client.c
index d0e0fd9aefe9f20295a8827fda8fb5dabcf3f26b..15b5f44a7270b4d903a90f0bc88e944e4b356864 100644 (file)
@@ -987,10 +987,12 @@ void EV_backtrace(AsyncIO *IO)
        size = backtrace(stack_frames, sizeof(stack_frames) / sizeof(void*));
        strings = backtrace_symbols(stack_frames, size);
        for (i = 0; i < size; i++) {
-               if (strings != NULL)
+               if (strings != NULL) {
                        EV_syslog(LOG_ALERT, " BT %s\n", strings[i]);
-               else
+               }
+               else {
                        EV_syslog(LOG_ALERT, " BT %p\n", stack_frames[i]);
+               }
        }
        free(strings);
 #endif