- **Milestone**: 5.1.1 --> 5.0.2
---
** [tickets:#2313] osaf: saflog function does not handle long record**
**Status:** assigned
**Milestone:** 5.0.2
**Created:** Fri Feb 17, 2017 06:45 AM UTC by Vu Minh Nguyen
**Last Updated:** Fri Feb 17, 2017 06:51 AM UTC
**Owner:** Vu Minh Nguyen
`saflog` is a utility function provided for other OpenSAF services to write an
log record to OpenSAF LOG.
The `logBuf` in that function is only limited to 255 bytes.
So, if writing an log record more than 255 bytes, the log record will be
truncated and `logBufSize` will hold the string length of the log record it
would have been written to. As the result, it leads to incosistence in
`logBufSize` and `logBuf`, eventually getting `SA_AIS_INVALID_PARAM`.
So, to solve the problem, `logBuf` capacity should be extended to avoid log
record truncation.
---
Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net 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.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets