fix(config): use new get_config across the app, use correct settings

This commit is contained in:
psychedelicious
2024-03-11 23:01:48 +11:00
parent 7b1f9409bc
commit 897fe497dc
18 changed files with 36 additions and 32 deletions

View File

@ -181,6 +181,7 @@ from pathlib import Path
from typing import Any, Dict, Optional
from invokeai.app.services.config import InvokeAIAppConfig
from invokeai.app.services.config.config_default import get_config
try:
import syslog
@ -339,7 +340,7 @@ class InvokeAILogger(object): # noqa D102
@classmethod
def get_logger(
cls, name: str = "InvokeAI", config: InvokeAIAppConfig = InvokeAIAppConfig.get_config()
cls, name: str = "InvokeAI", config: InvokeAIAppConfig = get_config()
) -> logging.Logger: # noqa D102
if name in cls.loggers:
return cls.loggers[name]