Commit 1c472307 authored by claes's avatar claes

Env variables allowed in console filename

parent de62ef6b
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#endif #endif
#include "co_ver.h" #include "co_ver.h"
#include "co_time.h" #include "co_time.h"
#include "co_dcli.h"
#include "ini.h" #include "ini.h"
#include "ini_rc.h" #include "ini_rc.h"
#include "rt_ini_alias.h" #include "rt_ini_alias.h"
...@@ -143,6 +144,7 @@ start ( ...@@ -143,6 +144,7 @@ start (
time(&t); time(&t);
tp = localtime(&t); tp = localtime(&t);
strftime(fname, sizeof(fname), cp->np->ErrLogFile, tp ); strftime(fname, sizeof(fname), cp->np->ErrLogFile, tp );
dcli_translate_filename( fname, fname);
errl_SetFile(fname); errl_SetFile(fname);
errh_LogInfo(&cp->log, "Setting log file to: %s", cp->np->ErrLogFile); errh_LogInfo(&cp->log, "Setting log file to: %s", cp->np->ErrLogFile);
} }
......
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