Skip to content

Commit

Permalink
Reduce debug log spam. Do not log recording descriptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
ksooo committed Jan 31, 2022
1 parent 5a93f45 commit 290badb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Tvheadend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2641,11 +2641,10 @@ void CTvheadend::ParseRecordingAddOrUpdate(htsmsg_t* msg, bool bAdd)
/* Update */
if (rec != comparison)
{
std::string error = rec.GetError().empty() ? "none" : rec.GetError();
const std::string error = rec.GetError().empty() ? "n/a" : rec.GetError();

Logger::Log(LogLevel::LEVEL_DEBUG, "recording id:%d, state:%s, title:%s, desc:%s, error:%s",
rec.GetId(), state, rec.GetTitle().c_str(), rec.GetDescription().c_str(),
error.c_str());
Logger::Log(LogLevel::LEVEL_DEBUG, "recording id:%d, state:%s, title:%s, error:%s",
rec.GetId(), state, rec.GetTitle().c_str(), error.c_str());

if (m_asyncState.GetState() > ASYNC_DVR)
{
Expand Down

0 comments on commit 290badb

Please sign in to comment.