Skip to content

Commit 38222a5

Browse files
committed
EPN STDERR: Don't rely on the working directory being the DDS_LOCATION with the log files
1 parent d855329 commit 38222a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Utilities/EPNMonitoring/src/EPNstderrMonitor.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ namespace bpo = boost::program_options;
220220
struct EPNstderrMonitor : fair::mq::Device {
221221
void InitTask() override
222222
{
223-
std::string path = ".";
223+
std::string path = getenv("DDS_LOCATION") ? (std::string(getenv("DDS_LOCATION")) + "/") : std::string(".");
224224
bool infoLogger = fConfig->GetProperty<int>("infologger");
225225
bool dds = false;
226226

0 commit comments

Comments
 (0)