Add the permanent log feature
[platform/core/connectivity/bluetooth-frwk.git] / bt-service-adaptation / services / bt-service-common.c
index 6baf5fa..2aa4800 100644 (file)
@@ -1309,6 +1309,10 @@ void _bt_permanent_log(const char *fmt, ...)
        long lsize = 0;
        va_list ap;
 
+#ifndef TIZEN_FEATURE_BT_PERMANENT_LOG
+       return;
+#endif
+
        t = time(&t);
        lt = localtime(&t);
        strftime(time_buf, sizeof(time_buf), "%m-%d %H:%M:%S", lt);