Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug output should write out column #34

Open
spuddybike opened this issue Mar 12, 2024 · 2 comments
Open

Debug output should write out column #34

spuddybike opened this issue Mar 12, 2024 · 2 comments
Assignees
Labels
3.2 enhancement New feature or request

Comments

@spuddybike
Copy link
Member

spuddybike commented Mar 12, 2024

If the column is not processable, the debug should identify the column which is the problem
e.g.
2022-11-15 08:42:48,454 [main] INFO edu.cornell.ncrn.ced2ar.stata.StataReaderFactory - Stata Data file test-file-data-types.dta is not a Format 115.
2022-11-15 08:42:48,455 [main] INFO edu.cornell.ncrn.ced2ar.stata.StataReaderFactory - Stata Data file test-file-data-types.dta is not a Format 114.
2022-11-15 08:42:48,455 [main] INFO edu.cornell.ncrn.ced2ar.stata.StataReaderFactory - Stata Data file test-file-data-types.dta is not a Format 113.
2022-11-15 08:42:48,457 [main] INFO edu.cornell.ncrn.ced2ar.stata.StataReaderFactory - Stata Data file test-file-data-types.dta is not a Format 117

@alkondrashov
Copy link
Collaborator

This INFO message is generated in edu.cornell.ncrn.ced2ar.stata.StataReaderFactory which we reference. I'm not sure if there is a way to point a column in that separate pakage.

@alkondrashov
Copy link
Collaborator

Stata Data file test-file-data-types.dta is not a Format 115 is generated based on dtaHeader.getDtaFileFormat() property in DtaReader.java, rather on an individual column:

protected void isValidFormat() throws InvalidDtaFormatException {
	if( dtaHeader.getDtaFileFormat() != 113)
		throw new InvalidDtaFormatException("This reader can only read format 113" );
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.2 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants