summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/entries.c
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2006-07-09 01:47:21 +0000
committerJoris Vink <joris@cvs.openbsd.org>2006-07-09 01:47:21 +0000
commit23d9e8e5405c501fceeb054f285d5968d1ba9114 (patch)
tree7beb49d05e4be7058e8c81034cde4372ec248370 /usr.bin/cvs/entries.c
parent9dc45c2d9db81ea578f057332e2b179f27cc8e66 (diff)
more straightforward trace (-t) output, too much is just too noisy.
Diffstat (limited to 'usr.bin/cvs/entries.c')
-rw-r--r--usr.bin/cvs/entries.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/cvs/entries.c b/usr.bin/cvs/entries.c
index 9b4a863b6e9..f51b96695d8 100644
--- a/usr.bin/cvs/entries.c
+++ b/usr.bin/cvs/entries.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: entries.c,v 1.60 2006/06/14 15:35:17 joris Exp $ */
+/* $OpenBSD: entries.c,v 1.61 2006/07/09 01:47:20 joris Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -252,7 +252,8 @@ cvs_ent_add(CVSENTRIES *ep, const char *line)
cvs_ent_free(ent);
- cvs_log(LP_TRACE, "cvs_ent_add(%s, %s)", ep->cef_path, line);
+ if (cvs_server_active == 0)
+ cvs_log(LP_TRACE, "cvs_ent_add(%s, %s)", ep->cef_path, line);
if ((fp = fopen(ep->cef_lpath, "a")) == NULL)
fatal("cvs_ent_add: failed to open '%s'", ep->cef_lpath);
@@ -274,7 +275,8 @@ cvs_ent_remove(CVSENTRIES *ep, const char *name)
FILE *fp;
struct cvs_ent_line *l;
- cvs_log(LP_TRACE, "cvs_ent_remove(%s, %s)", ep->cef_path, name);
+ if (cvs_server_active == 0)
+ cvs_log(LP_TRACE, "cvs_ent_remove(%s, %s)", ep->cef_path, name);
l = ent_get_line(ep, name);
if (l == NULL)