Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
JoshuaSBrown opened this issue Feb 1, 2025 · 0 comments · May be fixed by #1279
Open

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

JoshuaSBrown opened this issue Feb 1, 2025 · 0 comments · May be fixed by #1279
Labels
Component: GridFTP Auth Module Relates to GridFTP authorization library Type: Bug Something isn't working

Comments

@JoshuaSBrown
Copy link
Collaborator

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.

@JoshuaSBrown JoshuaSBrown linked a pull request Feb 1, 2025 that will close this issue
7 tasks
@JoshuaSBrown JoshuaSBrown added Type: Bug Something isn't working Component: GridFTP Auth Module Relates to GridFTP authorization library labels Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: GridFTP Auth Module Relates to GridFTP authorization library Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant