[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-mdb] branch master updated: show errors, hide logging
From: |
gnunet |
Subject: |
[taler-taler-mdb] branch master updated: show errors, hide logging |
Date: |
Tue, 23 Jan 2024 10:31:51 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository taler-mdb.
The following commit(s) were added to refs/heads/master by this push:
new 0d84556 show errors, hide logging
0d84556 is described below
commit 0d845562f481aaa46a7588532e70150fca64488e
Author: Christian Grothoff <grothoff@gnunet.org>
AuthorDate: Tue Jan 23 10:31:46 2024 +0100
show errors, hide logging
---
contrib/taler-mdb-ads.sh | 2 +-
src/taler-mdb.c | 6 ++++++
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/contrib/taler-mdb-ads.sh b/contrib/taler-mdb-ads.sh
index a0f6363..0fc1213 100755
--- a/contrib/taler-mdb-ads.sh
+++ b/contrib/taler-mdb-ads.sh
@@ -46,7 +46,7 @@ do
for AD in $(ls "${DATA_HOME}"/ads/* | shuf)
do
DELAY=$(echo "$AD" | awk -F'[-.]' '{print $(NF-1)}')
- fbi -d "$FBDEV" -a -m "768x576-75" -vt 2 -nocomments -noverbose
"$AD"
+ fbi -d "$FBDEV" -a -m "768x576-75" -vt 2 -nocomments -noverbose
"$AD" &> /dev/null
sleep "$DELAY"
killall fbi
done
diff --git a/src/taler-mdb.c b/src/taler-mdb.c
index 4d1e47d..e177132 100644
--- a/src/taler-mdb.c
+++ b/src/taler-mdb.c
@@ -918,9 +918,13 @@ stop_advertising (void)
static void
start_advertising (void)
{
+ if (NULL == err_child)
+ return;
stop_advertising (); /* just to be sure */
if (NULL == adv_process_command)
return;
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Starting advertising\n");
adv_child = start_command (adv_process_command,
NULL);
}
@@ -934,6 +938,8 @@ hide_error (void)
{
if (NULL == err_child)
return;
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Hiding error\n");
if (NULL != err_stop_task)
{
GNUNET_SCHEDULER_cancel (err_stop_task);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-taler-mdb] branch master updated: show errors, hide logging,
gnunet <=