Commit f3d15e0b authored by Philip Carns's avatar Philip Carns

allow logpath-by-env without logpath option


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@505 3b7491f3-a168-0410-bf4b-c445ed680a29
parent e8ad9b0a
...@@ -415,7 +415,9 @@ void darshan_shutdown(int timing_flag) ...@@ -415,7 +415,9 @@ void darshan_shutdown(int timing_flag)
logpath = getenv(CP_LOG_PATH_OVERRIDE); logpath = getenv(CP_LOG_PATH_OVERRIDE);
if (!logpath) if (!logpath)
{ {
#ifdef __CP_LOG_PATH
logpath = __CP_LOG_PATH; logpath = __CP_LOG_PATH;
#endif
} }
/* find a job id */ /* find a job id */
...@@ -470,6 +472,13 @@ void darshan_shutdown(int timing_flag) ...@@ -470,6 +472,13 @@ void darshan_shutdown(int timing_flag)
} }
#endif #endif
if(!logpath && !logpath_override)
{
/* we could not find any location to write the log file */
darshan_finalize(final_job);
return;
}
if(logpath_override) if(logpath_override)
{ {
ret = snprintf(logfile_name, PATH_MAX, ret = snprintf(logfile_name, PATH_MAX,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment