Skip to content

Coldstart logging issue #2186

@mathewc

Description

@mathewc

Some host level logs aren't logged when the runtime is cold starting. E.g. the admin/host/log endpoint. To repro, cause the runtime to coldstart before invoking this log endpoint.

I suspect that the issue is that these controllers are being created with a noop TraceWriter (their ctor argument) because the DI container only returns a valid TraceWriter when the runtime host instance is not null. Otherwise it returns a NullTraceWriter (code here). That's what I think the issue is. We need to change that code so there is a default trace writer that is used if the host is not yet running, one that logs to file and system logs.

Need to check other controllers as well, like KeysController, SwaggerController, etc.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions