Skip to content

Commit a853b7d

Browse files
committed
tail plugin: Add error log when flb fails to update the DB. Currently it fails silently.
Signed-off-by: Hardik Khurana <43683221+hardikkhurana@users.noreply.github.com>
1 parent 4b2fba5 commit a853b7d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugins/in_tail/tail_db.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,8 @@ int flb_tail_db_file_offset(struct flb_tail_file *file,
299299
ret = sqlite3_step(ctx->stmt_offset);
300300

301301
if (ret != SQLITE_DONE) {
302+
flb_plg_error(ctx->ins, "db: cannot update file offset for %s (id=%"PRIu64"), ret=%d,
303+
file->name, file->db_id, ret");
302304
sqlite3_clear_bindings(ctx->stmt_offset);
303305
sqlite3_reset(ctx->stmt_offset);
304306
return -1;

0 commit comments

Comments
 (0)