aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-03-29 17:04:46 +0000
committerNathan S. Evans <evans@in.tum.de>2010-03-29 17:04:46 +0000
commit5de8404e22d2c8854684058beab7afcd71ec63fb (patch)
tree0bb0923dd668ffa76fcf35c4ae90b13e1e1012af
parentc06f823b912709d2d30a8e5329f669916bce7ae6 (diff)
downloadgnunet-5de8404e22d2c8854684058beab7afcd71ec63fb.tar.gz
gnunet-5de8404e22d2c8854684058beab7afcd71ec63fb.zip
use loglevel defaults for gnunet-arm
-rw-r--r--src/arm/gnunet-arm.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/arm/gnunet-arm.c b/src/arm/gnunet-arm.c
index 55178843a..dd75d3284 100644
--- a/src/arm/gnunet-arm.c
+++ b/src/arm/gnunet-arm.c
@@ -127,13 +127,13 @@ confirm_cb (void *cls, int success)
127 switch (success) 127 switch (success)
128 { 128 {
129 case GNUNET_OK: 129 case GNUNET_OK:
130 fprintf (stdout, _("Service `%s' is now running.\n"), service); 130 GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Service `%s' is now running.\n"), service);
131 break; 131 break;
132 case GNUNET_NO: 132 case GNUNET_NO:
133 fprintf (stdout, _("Service `%s' is not running.\n"), service); 133 GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Service `%s' is not running.\n"), service);
134 break; 134 break;
135 case GNUNET_SYSERR: 135 case GNUNET_SYSERR:
136 fprintf (stdout, 136 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
137 _("Error updating service `%s': ARM not running\n"), service); 137 _("Error updating service `%s': ARM not running\n"), service);
138 break; 138 break;
139 } 139 }
@@ -157,9 +157,9 @@ confirm_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
157 const char *service = cls; 157 const char *service = cls;
158 158
159 if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_PREREQ_DONE)) 159 if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_PREREQ_DONE))
160 fprintf (stdout, _("Service `%s' is running.\n"), service); 160 GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Service `%s' is running.\n"), service);
161 else 161 else
162 fprintf (stdout, _("Service `%s' is not running.\n"), service); 162 GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Service `%s' is not running.\n"), service);
163 GNUNET_SCHEDULER_add_continuation (sched, 163 GNUNET_SCHEDULER_add_continuation (sched,
164 &cps_loop, 164 &cps_loop,
165 NULL, 165 NULL,
@@ -194,7 +194,7 @@ run (void *cls,
194 h = GNUNET_ARM_connect (cfg, sched, NULL); 194 h = GNUNET_ARM_connect (cfg, sched, NULL);
195 if (h == NULL) 195 if (h == NULL)
196 { 196 {
197 fprintf (stderr, 197 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
198 _("Fatal error initializing ARM API.\n")); 198 _("Fatal error initializing ARM API.\n"));
199 ret = 1; 199 ret = 1;
200 return; 200 return;
@@ -212,17 +212,17 @@ run (void *cls,
212 */ 212 */
213static void delete_files() 213static void delete_files()
214{ 214{
215 fprintf(stderr, "Will attempt to remove configuration file %s and service directory %s\n", config_file, dir); 215 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Will attempt to remove configuration file %s and service directory %s\n", config_file, dir);
216 216
217 if (UNLINK(config_file) != 0) 217 if (UNLINK(config_file) != 0)
218 { 218 {
219 fprintf (stderr, 219 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
220 _("Failed to remove configuration file %s\n"), config_file); 220 _("Failed to remove configuration file %s\n"), config_file);
221 } 221 }
222 222
223 if (GNUNET_DISK_directory_remove(dir) != GNUNET_OK) 223 if (GNUNET_DISK_directory_remove(dir) != GNUNET_OK)
224 { 224 {
225 fprintf (stderr, 225 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
226 _("Failed to remove servicehome directory %s\n"), dir); 226 _("Failed to remove servicehome directory %s\n"), dir);
227 227
228 } 228 }