move logging_util into archivebox.misc subfolder

This commit is contained in:
Nick Sweeting
2024-11-18 19:08:49 -08:00
parent e469c5a344
commit 4a5d607296
44 changed files with 89 additions and 113 deletions

View File

@@ -21,7 +21,7 @@ from collections.abc import Mapping
from benedict import benedict
from ..misc.logging import DEFAULT_CLI_COLORS
from archivebox.misc.logging import DEFAULT_CLI_COLORS
from .paths import (
PACKAGE_DIR,

View File

@@ -10,10 +10,10 @@ from rich.console import Console
import django
from . import CONSTANTS
from archivebox.misc import logging
from . import CONSTANTS
from .common import SHELL_CONFIG
from ..misc import logging
if not SHELL_CONFIG.USE_COLOR:

View File

@@ -114,7 +114,7 @@ def dir_is_writable(dir_path: Path, uid: int | None = None, gid: int | None = No
def assert_dir_can_contain_unix_sockets(dir_path: Path) -> bool:
"""Check if a given directory can contain unix sockets (e.g. /tmp/supervisord.sock)"""
from archivebox.logging_util import pretty_path
from archivebox.misc.logging_util import pretty_path
try:
socket_path = str(dir_path / '.test_socket.sock')