Skip to content

Log file still created with verbose=False #534

@EJRicketts

Description

@EJRicketts

Describe the bug
When setting verbose=False in the optimizer.optimize() method, the print to console and log file are stopped, but the log file is still created. It would be good if this didn't happen. Perhaps this is not due to this method, but generally it would be useful to have logging as an option

Environment (please complete the following information):

  • OS: Windows
  • Version 11
  • PySwarms Version 1.3.0
  • Python Version 3.12.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions