grpc-proxy: Add a prefix tag for debugging messages 73/29573/1
authorMarius Vlad <marius.vlad@collabora.com>
Tue, 2 Jan 2024 17:28:38 +0000 (19:28 +0200)
committerMarius Vlad <marius.vlad@collabora.com>
Tue, 2 Jan 2024 17:29:22 +0000 (19:29 +0200)
Bug-AGL: SPEC-4977
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Ib26d0b9f9d47e7d2e2d42b47a9702ba31d03f3b9

grpc-proxy/log.h

index 9bbba41..459d5b5 100644 (file)
@@ -5,7 +5,7 @@
 #define DEBUG
 
 #if !defined(LOG) && defined(DEBUG)
-#define LOG(fmt, ...) do { fprintf(stderr, "%s() " fmt, __func__, ##__VA_ARGS__); } while (0)
+#define LOG(fmt, ...) do { fprintf(stderr, "gRPC:proxy:%s() " fmt, __func__, ##__VA_ARGS__); } while (0)
 #else
 #define LOG(fmt, ...) do {} while (0)
 #endif