don't let the library calls to log to syslog/stdout
authorDaniel Kouřil <kouril@ics.muni.cz>
Tue, 28 Mar 2006 22:10:21 +0000 (22:10 +0000)
committerDaniel Kouřil <kouril@ics.muni.cz>
Tue, 28 Mar 2006 22:10:21 +0000 (22:10 +0000)
org.glite.security.proxyrenewal/examples/renew_core.c

index 4d9c967..69518ea 100644 (file)
@@ -46,9 +46,12 @@ main(int argc, char *argv[])
       exit(1);
    }
 
+   ctx->log_dst = GLITE_RENEWAL_LOG_NONE;
+
    ret = glite_renewal_core_renew(ctx, server, 0, proxy, &new_proxy);
    if (ret) {
-      fprintf(stderr, "glite_renewal_core_renew() failed: %d\n", ret);
+      fprintf(stderr, "%s: glite_renewal_core_renew() failed: %s",
+              argv[0], ctx->err_message);
       exit(1);
    }