summaryrefslogtreecommitdiff
path: root/usr.sbin/rpki-client
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2021-04-20 13:26:47 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2021-04-20 13:26:47 +0000
commit2fdd37fa934f438d6ba74b63d4de3b1a52a023c7 (patch)
tree52dc920681a2c5aee6eb86b1840ef45e72eb221c /usr.sbin/rpki-client
parent547671053d35dfd749f6da567ddcef98d7a6d994 (diff)
Switch some warnings to logx() to reduce log noise on runs without -v.
OK job@
Diffstat (limited to 'usr.sbin/rpki-client')
-rw-r--r--usr.sbin/rpki-client/rrdp.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/usr.sbin/rpki-client/rrdp.c b/usr.sbin/rpki-client/rrdp.c
index d6dacceda55..9e3c232e231 100644
--- a/usr.sbin/rpki-client/rrdp.c
+++ b/usr.sbin/rpki-client/rrdp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rrdp.c,v 1.6 2021/04/19 17:04:35 deraadt Exp $ */
+/* $OpenBSD: rrdp.c,v 1.7 2021/04/20 13:26:46 claudio Exp $ */
/*
* Copyright (c) 2020 Nils Fisher <nils_fisher@hotmail.com>
* Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org>
@@ -331,22 +331,19 @@ rrdp_finished(struct rrdp *s)
s->last_mod = NULL;
switch (s->task) {
case NOTIFICATION:
- warnx("%s: repository not modified",
- s->local);
+ logx("%s: repository not modified", s->local);
rrdp_state_send(s);
rrdp_free(s);
rrdp_done(id, 1);
break;
case SNAPSHOT:
- warnx("%s: downloading snapshot",
- s->local);
+ logx("%s: downloading snapshot", s->local);
s->sxml = new_snapshot_xml(p, &s->current, s);
s->state = RRDP_STATE_REQ;
break;
case DELTA:
- warnx("%s: downloading %lld deltas",
- s->local, s->repository.serial -
- s->current.serial);
+ logx("%s: downloading %lld deltas", s->local,
+ s->repository.serial - s->current.serial);
s->dxml = new_delta_xml(p, &s->current, s);
s->state = RRDP_STATE_REQ;
break;
@@ -372,7 +369,7 @@ rrdp_finished(struct rrdp *s)
break;
}
} else if (s->res == HTTP_NOT_MOD && s->task == NOTIFICATION) {
- warnx("%s: notification file not modified", s->local);
+ logx("%s: notification file not modified", s->local);
/* no need to update state file */
rrdp_free(s);
rrdp_done(id, 1);