summaryrefslogtreecommitdiff
path: root/src/log.h
diff options
context:
space:
mode:
authorJesper Jensen <jesper@jnsn.dev>2025-04-12 09:35:32 +0200
committerJesper Jensen <jesper@jnsn.dev>2025-04-12 10:21:20 +0200
commit04c5b9d5ef4723d469ea3472012787a8e2a5bdbd (patch)
treec9626a0cbc18e9d54fad639ac091121dc7d69713 /src/log.h
parentcd622b745254baafa21adf4b1b724e079652321a (diff)
Add prometheus monitoring
Diffstat (limited to 'src/log.h')
-rw-r--r--src/log.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/log.h b/src/log.h
index 77eab35..fe1c49a 100644
--- a/src/log.h
+++ b/src/log.h
@@ -7,17 +7,17 @@
dbgl(format "\n", ## __VA_ARGS__)
#define dbgl(format, ...) do{\
- printf(format, ## __VA_ARGS__); \
+ fprintf(stderr, format, ## __VA_ARGS__); \
fflush(stderr); \
} while(0)
#define err(format, ...) do{\
- printf(format "\n", ## __VA_ARGS__); \
+ fprintf(stderr, format "\n", ## __VA_ARGS__); \
fflush(stderr); \
} while(0)
#define fatal(format, ...) do{\
- printf(format "\n", ## __VA_ARGS__); \
+ fprintf(stderr, format "\n", ## __VA_ARGS__); \
fflush(stderr); \
abort(); \
} while(0)