summaryrefslogtreecommitdiff
path: root/src/journal-remote/journal-remote.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-07-01 23:18:44 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-07-15 22:34:41 -0400
commita83f403760cb63b1bf7787e9ff325ffb6d891d39 (patch)
treedb63ca7b6090151052c232a30ae62c20e3153b2f /src/journal-remote/journal-remote.c
parent4a0a6ac03864998c83918175609275df712a5a05 (diff)
journal-remote: improve some messages
Diffstat (limited to 'src/journal-remote/journal-remote.c')
-rw-r--r--src/journal-remote/journal-remote.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/journal-remote/journal-remote.c b/src/journal-remote/journal-remote.c
index 827916d1a0..d37fac3cea 100644
--- a/src/journal-remote/journal-remote.c
+++ b/src/journal-remote/journal-remote.c
@@ -500,8 +500,8 @@ static int process_http_upload(
r = get_writer(server, source->name, NULL, &w);
if (r < 0) {
- log_warning("Failed to get writer for source %s (%s): %s",
- source->name, source->name, strerror(-r));
+ log_warning("Failed to get writer for source %s: %s",
+ source->name, strerror(-r));
return mhd_respondf(connection,
MHD_HTTP_SERVICE_UNAVAILABLE,
"Failed to get writer for connection: %s.\n",
@@ -509,7 +509,7 @@ static int process_http_upload(
}
if (*upload_data_size) {
- log_info("Received %zu bytes", *upload_data_size);
+ log_debug("Received %zu bytes", *upload_data_size);
r = push_data(source, upload_data, *upload_data_size);
if (r < 0)
@@ -951,7 +951,7 @@ static int remoteserver_init(RemoteServer *s,
STRV_FOREACH(file, arg_files) {
if (streq(*file, "-")) {
- log_info("Reading standard input...");
+ log_info("Using standard input as source.");
fd = STDIN_FILENO;
output_name = "stdin";
@@ -1061,8 +1061,8 @@ static int dispatch_raw_source_event(sd_event_source *event,
r = get_writer(s, source->name, NULL, &w);
if (r < 0) {
- log_warning("Failed to get writer for source %s (%s): %s",
- source->name, source->name, strerror(-r));
+ log_warning("Failed to get writer for source %s: %s",
+ source->name, strerror(-r));
return r;
}
@@ -1077,7 +1077,7 @@ static int dispatch_raw_source_event(sd_event_source *event,
if (remaining > 0)
log_warning("Premature EOF. %zu bytes lost.", remaining);
remove_source(s, source->fd);
- log_info("%zd active source remaining", s->active);
+ log_info("%zd active sources remaining", s->active);
return 0;
} else if (r == -E2BIG) {
log_error("Entry too big, skipped");
@@ -1195,7 +1195,7 @@ static int parse_config(void) {
static void help(void) {
printf("%s [OPTIONS...] {FILE|-}...\n\n"
- "Write external journal events to a journal file.\n\n"
+ "Write external journal events to journal file(s).\n\n"
"Options:\n"
" --url=URL Read events from systemd-journal-gatewayd at URL\n"
" --getter=COMMAND Read events from the output of COMMAND\n"