Skip to content

system: unify the openlog() callers to avoid bad context switches #7921

@fichtner

Description

@fichtner

Important notices

Before you add a new report, we ask you kindly to acknowledge the following:

Is your feature request related to a problem? Please describe.

Nowadays closelog() has issues yet the reason for it was the nested openlog() calls which are impossible to track in spaghetti code and across legacy/MVC. The global nature of these calls and eventually missing context (because a subroutine changed the logging) makes this impossible to handle for multiple local log locations.

Describe the solution you like

Write a class-based wrapper that can handle the log context switches if needed and use it everywhere.

Describe alternatives you considered

N/A

Additional context

N/A

Metadata

Metadata

Labels

featureAdding new functionality

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions