Skip to content

Commit

Permalink
storage: modify log message
Browse files Browse the repository at this point in the history
Signed-off-by: Takahiro Yamashita <[email protected]>
  • Loading branch information
nokute78 committed Jan 7, 2024
1 parent ee16113 commit 34c00a1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/flb_storage.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,16 +533,20 @@ int flb_storage_input_create(struct cio_ctx *cio,
}
}
else if (stream->type != cio_storage_type) {
flb_info("[storage] storage type mismatch. input type=%s",
flb_storage_get_type(in->storage_type));
flb_debug("[storage] storage type mismatch. input type=%s",
flb_storage_get_type(in->storage_type));
if (stream->type == FLB_STORAGE_FS) {
flb_warn("[storage] Need to remove '%s/%s' if it is empty", cio->options.root_path, in->name);
}

cio_stream_destroy(stream);
stream = cio_stream_create(cio, in->name, cio_storage_type);
if (!stream) {
flb_error("[storage] cannot create stream for instance %s",
in->name);
return -1;
}
flb_info("[storage] re-create stream");
flb_info("[storage] re-create stream type=%s", flb_storage_get_type(in->storage_type));
}

/* allocate storage context for the input instance */
Expand Down

0 comments on commit 34c00a1

Please sign in to comment.