[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r37679 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r37679 - gnunet/src/util |
Date: |
Tue, 9 Aug 2016 12:00:29 +0200 |
Author: lynx
Date: 2016-08-09 12:00:29 +0200 (Tue, 09 Aug 2016)
New Revision: 37679
Modified:
gnunet/src/util/common_logging.c
Log:
end-user friendly output messages, ok like this?
Modified: gnunet/src/util/common_logging.c
===================================================================
--- gnunet/src/util/common_logging.c 2016-08-09 10:00:16 UTC (rev 37678)
+++ gnunet/src/util/common_logging.c 2016-08-09 10:00:29 UTC (rev 37679)
@@ -801,12 +801,26 @@
if ( (NULL != GNUNET_stderr) &&
(NULL == loggers) )
{
- FPRINTF (GNUNET_stderr,
+ if (kind == GNUNET_ERROR_TYPE_MESSAGE) {
+ /* The idea here is to produce "normal" output messages
+ * for end users while still having the power of the
+ * logging engine for developer needs. So ideally this
+ * is what it should look like when CLI tools are used
+ * interactively, yet the same message shouldn't look
+ * this way if the output is going to logfiles or robots
+ * instead. Is this the right place to do this? --lynX
+ */
+ FPRINTF (GNUNET_stderr,
+ "* %s",
+ msg);
+ } else {
+ FPRINTF (GNUNET_stderr,
"%s %s %s %s",
datestr,
comp,
GNUNET_error_type_to_string (kind),
msg);
+ }
fflush (GNUNET_stderr);
}
pos = loggers;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r37679 - gnunet/src/util,
gnunet <=