Skip to content

Commit

Permalink
-reduce some log levels
Browse files Browse the repository at this point in the history
  • Loading branch information
sgodin committed Aug 10, 2022
1 parent e009732 commit 8662ad5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
11 changes: 10 additions & 1 deletion reflow/Flow.cxx
Expand Up @@ -854,7 +854,15 @@ Flow::onReceiveSuccess(unsigned int socketDesc, const asio::ip::address& address
void
Flow::onReceiveFailure(unsigned int socketDesc, const asio::error_code& e)
{
WarningLog(<< "Flow::onReceiveFailure: socketDesc=" << socketDesc << " error=" << e.value() << "(" << e.message() << "), componentId=" << mComponentId);
if (e.value() == 10061)
{
// Lower log leve for common error on session termination
DebugLog(<< "Flow::onReceiveFailure: socketDesc=" << socketDesc << " error=" << e.value() << "(" << e.message() << "), componentId=" << mComponentId);
}
else
{
WarningLog(<< "Flow::onReceiveFailure: socketDesc=" << socketDesc << " error=" << e.value() << "(" << e.message() << "), componentId=" << mComponentId);
}

// Make sure we keep receiving if we get an ICMP error on a UDP socket
if(e.value() == asio::error::connection_reset && mLocalBinding.getTransportType() == StunTuple::UDP)
Expand Down Expand Up @@ -950,6 +958,7 @@ Flow::createDtlsSocketServer(const StunTuple& endpoint)

/* ====================================================================
Copyright (c) 2022, SIP Spectrum, Inc. http://sipspectrum.com
Copyright (c) 2007-2008, Plantronics, Inc.
All rights reserved.
Expand Down
5 changes: 3 additions & 2 deletions reflow/FlowManager.cxx
Expand Up @@ -80,7 +80,8 @@ FlowManager::FlowManager()
mSslContext.load_verify_file(VERIFY_FILE, ec); // TODO make a setting
if(ec)
{
ErrLog(<< "Unable to load verify file: " << VERIFY_FILE << ", error=" << ec.value() << "(" << ec.message() << ")");
// App may not care about DTLS - log as Info only
InfoLog(<< "Unable to load verify file: " << VERIFY_FILE << ", error=" << ec.value() << "(" << ec.message() << ")");
}
#endif

Expand Down Expand Up @@ -302,8 +303,8 @@ FlowManager::createCert(const resip::Data& pAor, int expireDays, int keyLen, X50

/* ====================================================================
Copyright (c) 2008-2022, SIP Spectrum, Inc. http://sipspectrum.com
Copyright (c) 2007-2008, Plantronics, Inc.
Copyright (c) 2008-2018, SIP Spectrum, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
Expand Down

0 comments on commit 8662ad5

Please sign in to comment.