move invokeai.db to ~/invokeai/databases

- The invokeai.db database file has now been moved into
  `INVOKEAIROOT/databases`. Using plural here for possible
  future with more than one database file.

- Removed a few dangling debug messages that appeared during
  testing.

- Rebuilt frontend to test web.
This commit is contained in:
Lincoln Stein
2023-06-03 20:24:41 -04:00
parent 0b49995659
commit 31e97ead2a
10 changed files with 29 additions and 14 deletions

View File

@ -655,11 +655,13 @@ def initialize_rootdir(root: str, yes_to_all: bool = False):
print("** INITIALIZING INVOKEAI RUNTIME DIRECTORY **")
for name in (
"models",
"configs",
"embeddings",
"text-inversion-output",
"text-inversion-training-data",
"models",
"configs",
"embeddings",
"databases",
"controlnets",
"text-inversion-output",
"text-inversion-training-data",
):
os.makedirs(os.path.join(root, name), exist_ok=True)

View File

@ -779,7 +779,7 @@ class ModelManager(object):
"""
model_path: Path = None
thing = path_url_or_repo # to save typing
thing = str(path_url_or_repo) # to save typing
self.logger.info(f"Probing {thing} for import")

View File

@ -194,7 +194,6 @@ class InvokeAILogger(object):
@classmethod
def getLoggers(cls, config: InvokeAIAppConfig) -> list[logging.Handler]:
handler_strs = config.log_handlers
print(f'handler_strs={handler_strs}')
handlers = list()
for handler in handler_strs:
handler_name,*args = handler.split('=',2)