Skip to content

[Enhancement]: Don't call getLogs() twice in Container#tryStart #11926

Description

@AB-xdev

Module

Core

Proposal

Code:

// Log output if startup failed, either due to a container failure or exception (including timeout)
final String containerLogs = getLogs();
if (containerLogs.length() > 0) {
logger().error("Log output from the failed container:\n{}", getLogs());

Should probably call getLogs() only once as it is not expected to change in between calls

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions