Skip to content

Commit af58aa4

Browse files
committed
BUFFER::ADDED:: Generate a warning in logs when expiry couldn't be set on a key
1 parent b87ca17 commit af58aa4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

samples/fbuffer/BufferThread.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ bool BufferThread::Main() {
4545

4646
// Set an expiration on the redis key, to purge if threads/filters are stopped or configuration is modified
4747
// The expiration MUST be over the interval period
48-
this->_connector->REDISSetExpiry(redis_list, this->_interval + 60);
48+
if (not this->_connector->REDISSetExpiry(redis_list, this->_interval + 60)) {
49+
DARWIN_LOG_WARNING("BufferThread::Main:: Could not set an expiration on key '" + redis_list + "'");
50+
}
4951
}
5052

5153
return true;

0 commit comments

Comments
 (0)