- **status**: accepted --> fixed
- **Part**: - --> doc
- **Comment**:
document updated
---
** [tickets:#2924] base: unexpected messages in syslog and the local log file
osaf.log**
**Status:** fixed
**Milestone:** future
**Created:** Fri Sep 07, 2018 10:08 AM UTC by Lê Khánh Linh
**Last Updated:** Tue Jul 23, 2019 12:24 AM UTC
**Owner:** Lê Khánh Linh
Here are what we should expect when the enviroment variable OSAF_LOCAL_NODE_LOG
is enabled:
1) All error messages including ERROR, CRITICAL, ALERT, EMERGENCY will log to
syslog only
2) All non-error messages will log to local log file (/var/log/opensaf/osaf.log)
In case that enviroment variable is disable, all logs will be written to syslog.
However, with current code, it does not work like that: warning and error
messages are written to both sources when the enviroment variables is enabled.
Here are evidences:
1) WARNING logs are also logged into syslog:
> root@SC-1:/var/log# grep " WA " /var/log/syslog
> 2018-09-10 14:15:41.313 SC-1 osafimmloadd: WA Could not open repository:imm.db
> 2018-09-10 14:15:41.530 SC-1 osafimmnd[207]: WA IMM Access Control mode is
> DISABLED!
> 2018-09-10 14:15:43.198 SC-1 osafckptd[417]: WA saImmOiImplementerSet
> returned 9
2) Error logs are also logged into the local file osaf.log
> root@SC-1:~# grep " ER " /var/log/opensaf/osaf.log
> <139>1 2018-09-11T17:27:56.489759+07:00 SC-1 osafimmd 196 osaf.log [meta
> sequenceId="4"] 196:imm/immd/immd_main.c:294 ER >>>>>>>>> Test log ERROR
> where to logged
> <139>1 2018-09-11T17:27:56.584763+07:00 SC-1 osafimmnd 207 osaf.log [meta
> sequenceId="4"] 207:imm/immnd/immnd_main.c:465 ER >>>>>>>>> Test log ERROR
> where ND to logged
Besides, the section "3.7.9.1 Local node log" in [PR
document](https://sourceforge.net/p/opensaf/documentation/ci/default/tree/OpenSAF_Overview_PR.odt)
should be updated too.
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets