From 08a451d24ab00fec9b318842c4cdf82ff5c090c6 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 2 Jul 2015 11:22:22 -0700 Subject: More debug message cleanup Remove several very noise messages on dive site handling (this seems to work well now, so I think we can remove most of them - a couple were left that indicate actual issues). And also remove all the calls to "translate" when outputting data to stderr. Error messages that indicate issues where the user will basically have to come and ask the developers for help shouldn't be localized. They should be in English to make it easier for us to figure out what's going on. Signed-off-by: Dirk Hohndel --- load-git.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'load-git.c') diff --git a/load-git.c b/load-git.c index 20c1ad351..d277ccea3 100644 --- a/load-git.c +++ b/load-git.c @@ -201,16 +201,13 @@ static void parse_dive_location(char *line, struct membuffer *str, void *_dive) char *name = get_utf8(str); struct dive *dive = _dive; struct dive_site *ds = get_dive_site_for_dive(dive); - fprintf(stderr, "looking for a site named {%s} ", name); if (!ds) { uuid = get_dive_site_uuid_by_name(name, NULL); - if (!uuid) { fprintf(stderr, "found none, creating\n"); + if (!uuid) uuid = create_dive_site(name); - } else { fprintf(stderr, "found one with uuid %8x\n", uuid); } dive->dive_site_uuid = uuid; } else { // we already had a dive site linked to the dive - fprintf(stderr, "dive had site with uuid %8x and name {%s}\n", ds->uuid, ds->name); if (same_string(ds->name, "")) { ds->name = name; } else { @@ -302,7 +299,6 @@ static void parse_site_gps(char *line, struct membuffer *str, void *_ds) static void parse_site_geo(char *line, struct membuffer *str, void *_ds) { - fprintf(stderr, "line |%s| str |%s|\n", line, mb_cstring(str)); struct dive_site *ds = _ds; if (ds->taxonomy.category == NULL) ds->taxonomy.category = alloc_taxonomy(); @@ -311,7 +307,6 @@ static void parse_site_geo(char *line, struct membuffer *str, void *_ds) struct taxonomy *t = &ds->taxonomy.category[nr]; t->value = strdup(mb_cstring(str)); sscanf(line, "cat %d origin %d \"", &t->category, &t->origin); - fprintf(stderr, "found category %d origin %d value |%s|\n", t->category, t->origin, t->value); ds->taxonomy.nr++; } } -- cgit v1.2.3-70-g09d2