summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-11-14 18:29:42 +0100
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-11-14 18:29:42 +0100
commit5eeadba9af3e03abf0af046fb20b64f3f7393658 (patch)
treea1802c0739c1bdf8619e53849b40500959f60506
parent4e4da4f5b67022037aaec66a6c496d3f49ef50b2 (diff)
log: print to stdout (ref #320)
-rw-r--r--src/log.c6
-rw-r--r--src/main.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/log.c b/src/log.c
index 6d38d2a..650689d 100644
--- a/src/log.c
+++ b/src/log.c
@@ -70,12 +70,12 @@ void vlog(enum log_level level, const char *fmt, va_list ap)
bool color = level == LEVEL_WARN || level == LEVEL_ERROR;
if (color)
- (void)re_fprintf(stderr, "\x1b[31m"); /* Red */
+ (void)re_fprintf(stdout, "\x1b[31m"); /* Red */
- (void)re_fprintf(stderr, "%s", buf);
+ (void)re_fprintf(stdout, "%s", buf);
if (color)
- (void)re_fprintf(stderr, "\x1b[;m");
+ (void)re_fprintf(stdout, "\x1b[;m");
}
le = lg.logl.head;
diff --git a/src/main.c b/src/main.c
index 40f7f9d..b789648 100644
--- a/src/main.c
+++ b/src/main.c
@@ -77,7 +77,7 @@ int main(int argc, char *argv[])
size_t i;
int err;
- (void)re_fprintf(stderr, "baresip v%s"
+ (void)re_fprintf(stdout, "baresip v%s"
" Copyright (C) 2010 - 2017"
" Alfred E. Heggestad et al.\n",
BARESIP_VERSION);