Skip to content

Conversation

evgenius-kom
Copy link
Contributor

@evgenius-kom evgenius-kom commented Sep 18, 2025

The log file created correctly, but the path wasn't logged. So it looks like the reasons were the dynamic_cast failures because of symbol visibility issues between dynamic libraries on macOS inside the getLogFileName() function.

Copy link
Contributor

@Fedr Fedr left a comment

Choose a reason for hiding this comment

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

We should fix dynamic_cast behavior, instead of making second mechanism.

std::error_code ec;
if ( !std::filesystem::is_directory( fileName, ec ) )
{
ec.clear();
Copy link
Contributor

Choose a reason for hiding this comment

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

std::filesystem::create_directories clears ec if no errors occur.

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