Don't include warning: ignoring deletion of file in logs

This commit is contained in:
Simon Quigley 2025-01-28 12:22:18 -06:00
parent 9c53398fc9
commit 94f5e376d4

View File

@ -40,6 +40,7 @@ public:
std::unique_lock lock(lock_);
std::string log_str = str.ends_with('\n') ? str : str + '\n';
if (str.empty() || last_data_str == log_str) { return; }
else if (str.contains("dpkg-source: warning: ignoring deletion of file")) { return; }
data += std::format("[{}] {}", get_current_utc_time("%Y-%m-%dT%H:%M:%SZ"), log_str);
last_data_str = log_str;
}