From 3e2605490f1b2f299b17eb85513e17197d767435 Mon Sep 17 00:00:00 2001 From: orignal Date: Mon, 30 Jan 2017 20:36:35 -0500 Subject: [PATCH] cleanup error messages --- NetDb.cpp | 8 ++++---- Streaming.cpp | 2 +- Transports.cpp | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/NetDb.cpp b/NetDb.cpp index 88d5483f..8b4ec88a 100644 --- a/NetDb.cpp +++ b/NetDb.cpp @@ -583,7 +583,7 @@ namespace data IdentHash ident (buf + DATABASE_STORE_KEY_OFFSET); if (ident.IsZero ()) { - LogPrint (eLogError, "NetDb: database store with zero ident, dropped"); + LogPrint (eLogDebug, "NetDb: database store with zero ident, dropped"); return; } uint32_t replyToken = bufbe32toh (buf + DATABASE_STORE_REPLY_TOKEN_OFFSET); @@ -602,14 +602,14 @@ namespace data if (outbound) outbound->SendTunnelDataMsg (buf + offset, tunnelID, deliveryStatus); else - LogPrint (eLogError, "NetDb: no outbound tunnels for DatabaseStore reply found"); + LogPrint (eLogWarning, "NetDb: no outbound tunnels for DatabaseStore reply found"); } offset += 32; } // we must send reply back before this check if (ident == i2p::context.GetIdentHash ()) { - LogPrint (eLogError, "NetDb: database store with own RouterInfo received, dropped"); + LogPrint (eLogDebug, "NetDb: database store with own RouterInfo received, dropped"); return; } size_t payloadOffset = offset; @@ -636,7 +636,7 @@ namespace data updated = AddRouterInfo (ident, uncompressed, uncompressedSize); else { - LogPrint (eLogError, "NetDb: decompression failed ", uncompressedSize); + LogPrint (eLogInfo, "NetDb: decompression failed ", uncompressedSize); return; } } diff --git a/Streaming.cpp b/Streaming.cpp index f8e1e99d..551b1ff6 100644 --- a/Streaming.cpp +++ b/Streaming.cpp @@ -895,7 +895,7 @@ namespace stream it->second->HandleNextPacket (packet); else { - LogPrint (eLogError, "Streaming: Unknown stream sSID=", sendStreamID); + LogPrint (eLogInfo, "Streaming: Unknown stream sSID=", sendStreamID); DeletePacket (packet); } } diff --git a/Transports.cpp b/Transports.cpp index 5b188a7d..b0a19379 100644 --- a/Transports.cpp +++ b/Transports.cpp @@ -418,7 +418,7 @@ namespace transport } else { - LogPrint (eLogError, "Transports: RouterInfo not found, Failed to send messages"); + LogPrint (eLogWarning, "Transports: RouterInfo not found, Failed to send messages"); std::unique_lock l(m_PeersMutex); m_Peers.erase (it); }