Skip to content

[Authz, Logs] - Bug logoutput from AuthzWorker is not being shown #1276

@JoshuaSBrown

Description

@JoshuaSBrown

Description

The log output from the authz workers is not being put in a file. This has been identified to be the result of the ofstream going out of scope after being added to the Dynamic logger as a reference.

  if (log_path_authz.length() > 0) {
    // Append to the existing path because we don't want the C++ and C code
    // trying to write to the same file
    log_path_authz.append("_authz");
    std::ofstream log_file_worker(log_path_authz);
    SDMS::global_logger.addStream(log_file_worker);
  }

Acceptance

Make sure that the ofstream last for the duration that logs are being sent, and that it is removed from the dynamic logger when complete.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions