aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cubeb_log.cpp
diff options
context:
space:
mode:
authorPaul Adenot <[email protected]>2022-07-19 17:53:29 +0200
committerGitHub <[email protected]>2022-07-19 08:53:29 -0700
commit190652b71f4e0adbd6b38642f9b8ba6296ad1398 (patch)
tree99968751ca6653f8280b8d0feb082bb57880af21 /src/cubeb_log.cpp
parentc2243e891b7a42c2a231ca573281150e8cb3f2d4 (diff)
downloadcubeb-190652b71f4e0adbd6b38642f9b8ba6296ad1398.tar.gz
cubeb-190652b71f4e0adbd6b38642f9b8ba6296ad1398.zip
Don't print the file name and \n twice when logging asynchronously (#715)
Not the prettiest but it does the job. Thanks to @ashleyz we don't really care about checking the log level here, it's checked ahead of time, which is nice because we don't want to carry it in the async log payload.
Diffstat (limited to 'src/cubeb_log.cpp')
-rw-r--r--src/cubeb_log.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cubeb_log.cpp b/src/cubeb_log.cpp
index bd34af1..16aed6e 100644
--- a/src/cubeb_log.cpp
+++ b/src/cubeb_log.cpp
@@ -72,7 +72,7 @@ public:
while (true) {
cubeb_log_message msg;
while (msg_queue.dequeue(&msg, 1)) {
- LOGV("%s", msg.get());
+ LOG_INTERNAL_NO_FORMAT(CUBEB_LOG_NORMAL, "%s", msg.get());
}
#ifdef _WIN32
Sleep(CUBEB_LOG_BATCH_PRINT_INTERVAL_MS);