Skip to content

Commit 4eda28a

Browse files
committed
Add more debug info to configuration.
1 parent c1e74c8 commit 4eda28a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/configuration/source/configuration.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ static int configuration_path_from_library_path(dynlink_path library_relative_pa
4545
return 1;
4646
}
4747

48+
log_write("metacall", LOG_LEVEL_DEBUG, "Finding configuration relative path %s to %s", relative_path, library_path);
49+
4850
/* Get the current folder without the library */
4951
size = portability_path_get_directory_inplace(library_path, length + 1);
5052

@@ -102,7 +104,7 @@ int configuration_initialize(const char *reader, const char *path, void *allocat
102104
}
103105

104106
#if (defined(WIN32) || defined(_WIN32)) && defined(_MSC_VER)
105-
/* Windows MSVC stores the build folder in Debug/Release folders, so we must also check in the parent folder */
107+
/* Windows MSVC when running the tests, it has the binaries in Debug / Release folders, so we must also check in the parent folder */
106108
if (global == NULL)
107109
{
108110
static const char configuration_default_path_win32[] = ".." ENVIRONMENT_VARIABLE_PATH_SEPARATOR_STR CONFIGURATION_DEFAULT_PATH;

0 commit comments

Comments
 (0)