[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r3673 - GNUnet/src/server
From: |
grothoff |
Subject: |
[GNUnet-SVN] r3673 - GNUnet/src/server |
Date: |
Wed, 8 Nov 2006 12:43:51 -0800 (PST) |
Author: grothoff
Date: 2006-11-08 12:43:48 -0800 (Wed, 08 Nov 2006)
New Revision: 3673
Modified:
GNUnet/src/server/gnunetd.c
Log:
log to stderr if run with -d
Modified: GNUnet/src/server/gnunetd.c
===================================================================
--- GNUnet/src/server/gnunetd.c 2006-11-08 20:07:35 UTC (rev 3672)
+++ GNUnet/src/server/gnunetd.c 2006-11-08 20:43:48 UTC (rev 3673)
@@ -30,6 +30,7 @@
#include "gnunet_util.h"
#include "gnunet_util_boot.h"
#include "gnunet_util_cron.h"
+#include "gnunet_util_error_loggers.h"
#include "gnunet_core.h"
#include "gnunet_directories.h"
#include "core.h"
@@ -205,11 +206,22 @@
gnunetdOptions,
&ectx,
&cfg);
- if ( (ret == -1) ||
- (OK != changeUser(ectx, cfg)) ) {
+ if (ret == -1) {
GNUNET_fini(ectx, cfg);
return 1;
}
+ if (YES == debug_flag) {
+ ectx = GE_create_context_multiplexer(ectx,
+ GE_create_context_stderr(NO,
+ GE_USERKIND |
+ GE_EVENTKIND
|
+ GE_BULK |
+
GE_IMMEDIATE));
+ }
+ if (OK != changeUser(ectx, cfg)) {
+ GNUNET_fini(ectx, cfg);
+ return 1;
+ }
if (OK != checkUpToDate(ectx,
cfg)) {
GE_LOG(ectx,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r3673 - GNUnet/src/server,
grothoff <=