Commit 1f973fab authored by claes's avatar claes

Name of errlog file changed

parent 9b1bf4ad
...@@ -144,6 +144,16 @@ start ( ...@@ -144,6 +144,16 @@ start (
errh_LogInfo(&cp->log, "Setting log terminal to: %s", cp->np->ErrLogTerm); errh_LogInfo(&cp->log, "Setting log terminal to: %s", cp->np->ErrLogTerm);
errl_SetTerm(cp->np->ErrLogTerm); errl_SetTerm(cp->np->ErrLogTerm);
} }
/* Logfile is always $pwrp_log/pwr.log from V4.0.0 and handled by Linux log rotation */
char fname[256];
sprintf(fname, "$pwrp_log/pwr_%s.log", cp->nodename);
dcli_translate_filename(fname, fname);
errl_SetFile(fname);
errh_LogInfo(&cp->log, "Setting log file to: %s", fname);
/*
if (cp->np->ErrLogFile[0] != '\0') { if (cp->np->ErrLogFile[0] != '\0') {
struct tm *tp; struct tm *tp;
char fname[256]; char fname[256];
...@@ -156,6 +166,7 @@ start ( ...@@ -156,6 +166,7 @@ start (
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);
} }
*/
} }
ini_SetSystemStatus( cp, PWR__STARTUP); ini_SetSystemStatus( cp, PWR__STARTUP);
......
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