Reduce unnecessary 'recording..' related logs
authorJi-hoon Lee <dalton.lee@samsung.com>
Wed, 3 Apr 2019 05:25:11 +0000 (14:25 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Wed, 3 Apr 2019 05:25:11 +0000 (14:25 +0900)
Change-Id: I3bc536f8ac6d4838263d2b1ba8c4f5d438a28c47

plugins/wakeup-manager/src/wakeup_audio_manager.cpp

index c0c7b5c..9c8a228 100644 (file)
@@ -251,9 +251,6 @@ void CAudioManager::recorder_thread_func()
                                        free(front.data.buffer);
                                }
                                mBackgroundData.pop_front();
-                               if (0 == buffer_count % 100) {
-                                       LOGD("[Recorder] list pop_front (%zu)", mBackgroundData.size());
-                               }
                        }
                }
 
@@ -265,14 +262,11 @@ void CAudioManager::recorder_thread_func()
                        data.data.len = read_bytes;
                        memcpy(data.data.buffer, buffer, read_bytes);
                        mBackgroundData.push_back(data);
-                       if (0 == buffer_count % 100) {
-                               LOGD("[Recorder] list push_back (%zu), %ld %ld %ld", mBackgroundData.size(), mBackgroundData.front().time, time, time - delta);
-                       }
                }
 
                // UNLOCK REQUIRED
                /* Audio read log */
-               if (0 == buffer_count % 100) {
+               if (0 == buffer_count % 300) {
                        LOGD("[Recorder][%d] Recording... : read_size(%d)", buffer_count, read_bytes);
                }