if ARRDOUR_NOLOG_STD is set in the runtime environment, do not redirect stdout & stderr to a file on macOS

This commit is contained in:
Paul Davis 2025-02-08 19:06:20 -07:00
parent 68ca768bc4
commit 68be611ed2

View file

@ -58,6 +58,10 @@ extern void no_app_nap (); // cocoacarbon.mm
static void
setup_logging (void)
{
if (g_getenv ("ARDOUR_NOLOG_STD")) {
return;
}
char path[PATH_MAX+1];
snprintf (path, sizeof (path), "%s/stderr.log", user_config_directory().c_str());