Skip to content

Conversation

@hra687261
Copy link
Contributor

The Bos.OS.File.write that was previously used truncates the file then writes to it, which means that if you have multiple runs of smtml, you'd have to reset the QUERY_LOG_PATH to a new path each time if you want to keep all of them (or copy the file every time).

The current one simply appends to the file if it already exists,which means that one file can be used for all the queries.

I am not very familiar with Bos so I am not sure how to get the same behavior using it.

Copy link
Member

@filipeom filipeom left a comment

Choose a reason for hiding this comment

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

LGTM! ☑️

On a side node, from what I could see, there are no functions in bos to provide similar behaviour 😬

@redianthus
Copy link
Contributor

Indeed, I opened an issue to see if we can add it. :) I think we can merge this as is for now.

@hra687261
Copy link
Contributor Author

Yes, I took a quick look at the API and I didn't see any function to do it.

Indeed, I opened an issue to see if we can add it. :) I think we can merge this as is for now.

Thanks!

@hra687261 hra687261 merged commit 57938c7 into formalsec:main Nov 24, 2025
9 checks passed
@hra687261 hra687261 deleted the upd_logging_mode branch November 24, 2025 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants