Skip to content

PVXS calls errlogInit early enough that it is not possible to override in an st.cmd #140

@simon-ess

Description

@simon-ess

Describe the bug
Long messages to the errorlog get truncated if you run an ioc using softIocPVX (or something similar).

Ordinarily, you can call

errlogInit2 2048 2047

(or some such large number) early on in an IOC startup script to override this. However, PVXS has a logging call that calls errlogInit() early on which prevents you from overwriting the buffer size.

To Reproduce
Steps to reproduce the behavior:

  1. Create an IOC that will produce a longer-than-256 character error log
  2. Run it
  3. oops

Expected behavior
It should be possible to override the error log messages size to avoid this issue

Information (please complete the following):

  • PVXS Version or Git commit ID: 1.3.3
  • EPICS Base Version: 7.0.8.1
  • libevent Version: n/a
  • EPICS_HOST_ARCH: n/a
  • Compiler version: n/a

The versions above likely do not matter however.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions