Skip to content

feat: improve CsvConcat logging by removing misleading warning#674

Merged
skxeve merged 2 commits intoBrainPad:masterfrom
Deepak8858:fix/issue-673-csvconcat-logging
Apr 10, 2026
Merged

feat: improve CsvConcat logging by removing misleading warning#674
skxeve merged 2 commits intoBrainPad:masterfrom
Deepak8858:fix/issue-673-csvconcat-logging

Conversation

@Deepak8858
Copy link
Copy Markdown

Fixes #673.

This PR improves the logging in CsvConcat by removing the misleading warning "Two or more input files are required" when only one file is provided. Since the process continues successfully with one file, a warning was inappropriate. An INFO level log has been added to explicitly state the number of input files being processed.

Comment thread cliboa/scenario/transform/csv.py Outdated
for file in self.args.src_filenames:
files.append(os.path.join(self.args.src_dir, file))

self.logger.info(f"{len(files)} input files are found.")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move this after the exception check for 0 files, as the exception already generates an error log within the cliboa framework.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed! Moved the log statement after the exception check.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for the quick fix!

@skxeve skxeve added the enhancement Improvement to an existing feature label Apr 9, 2026
@skxeve skxeve merged commit 4f3f9a3 into BrainPad:master Apr 10, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improvement to an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improvement of CsvConcat logging

3 participants