Skip to content

Commit

Permalink
hopefully fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
loriab committed Dec 12, 2024
1 parent 342cf61 commit 05d4e58
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions qcengine/procedures/optking.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import logging
import sys
from io import StringIO
from typing import Any, ClassVar, Dict, Union

Expand Down Expand Up @@ -44,8 +45,8 @@ def compute(self, input_model: "OptimizationInput", config: "TaskConfig") -> "Op
import optking

log_stream = StringIO()
log = logging.getLogger(f"{__name__}.{id(self)}")
log = logging.getLogger("optking")
logname = "psi4.optking" if "psi4" in sys.modules else "optking"
log = logging.getLogger(logname)
log.addHandler(logging.StreamHandler(log_stream))
log.setLevel("INFO")

Expand Down

0 comments on commit 05d4e58

Please sign in to comment.