[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: MESSENGER: adjust log level to reduce ov
From: |
gnunet |
Subject: |
[gnunet] branch master updated: MESSENGER: adjust log level to reduce overall logging in production |
Date: |
Mon, 23 Sep 2024 14:11:08 +0200 |
This is an automated email from the git hooks/post-receive script.
thejackimonster pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 169d290bf MESSENGER: adjust log level to reduce overall logging in
production
169d290bf is described below
commit 169d290bf5f142cb0fb396d7a3097091733147d5
Author: Jacki <jacki@thejackimonster.de>
AuthorDate: Mon Sep 23 14:10:16 2024 +0200
MESSENGER: adjust log level to reduce overall logging in production
Signed-off-by: Jacki <jacki@thejackimonster.de>
---
src/service/messenger/gnunet-service-messenger.c | 2 +-
src/service/messenger/gnunet-service-messenger_handle.c | 10 +++++-----
.../messenger/gnunet-service-messenger_message_handle.c | 4 ++--
src/service/messenger/gnunet-service-messenger_room.c | 10 +++++-----
src/service/messenger/gnunet-service-messenger_service.c | 2 +-
src/service/messenger/messenger_api_message.c | 4 ++--
6 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/src/service/messenger/gnunet-service-messenger.c
b/src/service/messenger/gnunet-service-messenger.c
index b8e114235..324edd767 100644
--- a/src/service/messenger/gnunet-service-messenger.c
+++ b/src/service/messenger/gnunet-service-messenger.c
@@ -418,7 +418,7 @@ callback_found_message (void *cls,
struct GNUNET_MESSENGER_GetMessage *response;
struct GNUNET_MQ_Envelope *env;
- GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Notifying client about missing message: %s\n",
GNUNET_h2s (hash));
diff --git a/src/service/messenger/gnunet-service-messenger_handle.c
b/src/service/messenger/gnunet-service-messenger_handle.c
index 44c3cd8aa..542cf2db0 100644
--- a/src/service/messenger/gnunet-service-messenger_handle.c
+++ b/src/service/messenger/gnunet-service-messenger_handle.c
@@ -180,7 +180,7 @@ create_handle_member_id (const struct
GNUNET_MESSENGER_SrvHandle *handle,
return GNUNET_NO;
}
- GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Created a new member id (%s) for room: %s\n", GNUNET_sh2s (
random_id),
GNUNET_h2s (key));
@@ -227,14 +227,14 @@ change_srv_handle_member_id (struct
GNUNET_MESSENGER_SrvHandle *handle,
if (0 == GNUNET_memcmp (unique_id, member_id))
return GNUNET_OK;
- GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Change a member id (%s) for room (%s).\n", GNUNET_sh2s (
member_id),
GNUNET_h2s (key));
GNUNET_memcpy (member_id, unique_id, sizeof(*unique_id));
- GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Member id changed to (%s).\n",
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Member id changed to (%s).\n",
GNUNET_sh2s (unique_id));
return GNUNET_OK;
}
@@ -531,7 +531,7 @@ skip_message_filter:
context = get_next_member_session_context (session->member);
}
- GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Notifying client about message: %s (%s)\n",
GNUNET_h2s (hash), GNUNET_MESSENGER_name_of_kind (
message->header.kind));
@@ -583,7 +583,7 @@ iterate_next_member_ids (void *cls,
handle = cls;
next = value;
- GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Notifying client about next member id: %s (%s)\n",
GNUNET_sh2s (&(next->id)), GNUNET_h2s (key));
diff --git a/src/service/messenger/gnunet-service-messenger_message_handle.c
b/src/service/messenger/gnunet-service-messenger_message_handle.c
index aa16e0562..bbf5ed0c9 100644
--- a/src/service/messenger/gnunet-service-messenger_message_handle.c
+++ b/src/service/messenger/gnunet-service-messenger_message_handle.c
@@ -49,7 +49,7 @@ handle_message_join (struct GNUNET_MESSENGER_SrvRoom *room,
const struct GNUNET_MESSENGER_Message *message,
const struct GNUNET_HashCode *hash)
{
- GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Member (%s) joins room (%s).\n",
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Member (%s) joins room (%s).\n",
GNUNET_sh2s (&(message->header.sender_id)), GNUNET_h2s (
get_srv_room_key (room)));
@@ -71,7 +71,7 @@ handle_message_leave (struct GNUNET_MESSENGER_SrvRoom *room,
const struct GNUNET_MESSENGER_Message *message,
const struct GNUNET_HashCode *hash)
{
- GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Member (%s) leaves room (%s).\n",
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Member (%s) leaves room (%s).\n",
GNUNET_sh2s (&(message->header.sender_id)), GNUNET_h2s (
get_srv_room_key (room)));
diff --git a/src/service/messenger/gnunet-service-messenger_room.c
b/src/service/messenger/gnunet-service-messenger_room.c
index 9ff9c1ae0..bcf97ee33 100644
--- a/src/service/messenger/gnunet-service-messenger_room.c
+++ b/src/service/messenger/gnunet-service-messenger_room.c
@@ -227,7 +227,7 @@ callback_room_connect (void *cls,
bind_tunnel (tunnel, channel);
- GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"New tunnel in room (%s) established to peer: %s\n",
GNUNET_h2s (get_srv_room_key (room)), GNUNET_i2s (source));
@@ -336,7 +336,7 @@ open_srv_room (struct GNUNET_MESSENGER_SrvRoom *room,
}
if (room->port)
- GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Port of room (%s) was opened!\n",
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Port of room (%s) was opened!\n",
GNUNET_h2s (get_srv_room_key (room)));
else
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
@@ -744,7 +744,7 @@ delete_srv_room_message (struct GNUNET_MESSENGER_SrvRoom
*room,
if (0 == GNUNET_memcmp (&forever, &delay))
{
- GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Deletion is delayed forever: operation is impossible!\n");
return GNUNET_SYSERR;
}
@@ -834,7 +834,7 @@ request_room_message_step (struct GNUNET_MESSENGER_SrvRoom
*room,
if (! link)
goto forward;
- GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Requesting link of message with hash: %s\n",
GNUNET_h2s (hash));
@@ -856,7 +856,7 @@ forward:
if (! message)
{
- GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Requested message is missing in local storage: %s\n",
GNUNET_h2s (hash));
return GNUNET_NO;
diff --git a/src/service/messenger/gnunet-service-messenger_service.c
b/src/service/messenger/gnunet-service-messenger_service.c
index dceaa0274..7df4dc837 100644
--- a/src/service/messenger/gnunet-service-messenger_service.c
+++ b/src/service/messenger/gnunet-service-messenger_service.c
@@ -294,7 +294,7 @@ find_member_session_in_room (void *cls,
return GNUNET_NO;
}
- GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Initialitation: Matching member found (%s)!\n",
GNUNET_sh2s (id));
diff --git a/src/service/messenger/messenger_api_message.c
b/src/service/messenger/messenger_api_message.c
index c359414da..bc5744cde 100644
--- a/src/service/messenger/messenger_api_message.c
+++ b/src/service/messenger/messenger_api_message.c
@@ -1302,7 +1302,7 @@ decrypt_message (struct GNUNET_MESSENGER_Message *message,
(uint8_t*) data,
NULL))
{
- GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Decrypting message failed!\n");
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Decrypting message failed!\n");
goto cleanup;
}
@@ -1412,7 +1412,7 @@ pack_message (struct GNUNET_MESSENGER_Message *message,
GNUNET_assert (message);
- GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Packing message kind=%u and sender: %s\n",
message->header.kind, GNUNET_sh2s
(&(message->header.sender_id)));
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: MESSENGER: adjust log level to reduce overall logging in production,
gnunet <=