mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-03-31 12:22:25 +10:00
fix: Rename logging folder to avoid naming conflicts (and circular import issues)
This commit is contained in:
@@ -110,7 +110,7 @@ def main(args: Optional[List[str]]=NotProvided, stdin: Optional[IO]=NotProvided,
|
||||
command.subcommand = 'version'
|
||||
|
||||
if command.subcommand not in ('help', 'version', 'status'):
|
||||
from ..logging import log_cli_command
|
||||
from ..logging_util import log_cli_command
|
||||
|
||||
log_cli_command(
|
||||
subcommand=command.subcommand,
|
||||
|
||||
@@ -10,7 +10,7 @@ from typing import List, Optional, IO
|
||||
|
||||
from ..main import add, docstring
|
||||
from ..config import OUTPUT_DIR, ONLY_NEW
|
||||
from ..logging import SmartFormatter, accept_stdin, stderr
|
||||
from ..logging_util import SmartFormatter, accept_stdin, stderr
|
||||
|
||||
|
||||
@docstring(add.__doc__)
|
||||
|
||||
@@ -10,7 +10,7 @@ from typing import Optional, List, IO
|
||||
|
||||
from ..main import config, docstring
|
||||
from ..config import OUTPUT_DIR
|
||||
from ..logging import SmartFormatter, accept_stdin
|
||||
from ..logging_util import SmartFormatter, accept_stdin
|
||||
|
||||
|
||||
@docstring(config.__doc__)
|
||||
|
||||
@@ -10,7 +10,7 @@ from typing import Optional, List, IO
|
||||
|
||||
from ..main import help, docstring
|
||||
from ..config import OUTPUT_DIR
|
||||
from ..logging import SmartFormatter, reject_stdin
|
||||
from ..logging_util import SmartFormatter, reject_stdin
|
||||
|
||||
|
||||
@docstring(help.__doc__)
|
||||
|
||||
@@ -10,7 +10,7 @@ from typing import Optional, List, IO
|
||||
|
||||
from ..main import init, docstring
|
||||
from ..config import OUTPUT_DIR
|
||||
from ..logging import SmartFormatter, reject_stdin
|
||||
from ..logging_util import SmartFormatter, reject_stdin
|
||||
|
||||
|
||||
@docstring(init.__doc__)
|
||||
|
||||
@@ -22,7 +22,7 @@ from ..index import (
|
||||
get_corrupted_folders,
|
||||
get_unrecognized_folders,
|
||||
)
|
||||
from ..logging import SmartFormatter, accept_stdin
|
||||
from ..logging_util import SmartFormatter, accept_stdin
|
||||
|
||||
|
||||
@docstring(list_all.__doc__)
|
||||
|
||||
@@ -10,7 +10,7 @@ from typing import Optional, List, IO
|
||||
|
||||
from ..main import remove, docstring
|
||||
from ..config import OUTPUT_DIR
|
||||
from ..logging import SmartFormatter, accept_stdin
|
||||
from ..logging_util import SmartFormatter, accept_stdin
|
||||
|
||||
|
||||
@docstring(remove.__doc__)
|
||||
|
||||
@@ -10,7 +10,7 @@ from typing import Optional, List, IO
|
||||
|
||||
from ..main import schedule, docstring
|
||||
from ..config import OUTPUT_DIR
|
||||
from ..logging import SmartFormatter, reject_stdin
|
||||
from ..logging_util import SmartFormatter, reject_stdin
|
||||
|
||||
|
||||
@docstring(schedule.__doc__)
|
||||
|
||||
@@ -10,7 +10,7 @@ from typing import Optional, List, IO
|
||||
|
||||
from ..main import server, docstring
|
||||
from ..config import OUTPUT_DIR
|
||||
from ..logging import SmartFormatter, reject_stdin
|
||||
from ..logging_util import SmartFormatter, reject_stdin
|
||||
|
||||
|
||||
@docstring(server.__doc__)
|
||||
|
||||
@@ -10,7 +10,7 @@ from typing import Optional, List, IO
|
||||
|
||||
from ..main import shell, docstring
|
||||
from ..config import OUTPUT_DIR
|
||||
from ..logging import SmartFormatter, reject_stdin
|
||||
from ..logging_util import SmartFormatter, reject_stdin
|
||||
|
||||
|
||||
@docstring(shell.__doc__)
|
||||
|
||||
@@ -10,7 +10,7 @@ from typing import Optional, List, IO
|
||||
|
||||
from ..main import status, docstring
|
||||
from ..config import OUTPUT_DIR
|
||||
from ..logging import SmartFormatter, reject_stdin
|
||||
from ..logging_util import SmartFormatter, reject_stdin
|
||||
|
||||
|
||||
@docstring(status.__doc__)
|
||||
|
||||
@@ -22,7 +22,7 @@ from ..index import (
|
||||
get_corrupted_folders,
|
||||
get_unrecognized_folders,
|
||||
)
|
||||
from ..logging import SmartFormatter, accept_stdin
|
||||
from ..logging_util import SmartFormatter, accept_stdin
|
||||
|
||||
|
||||
@docstring(update.__doc__)
|
||||
|
||||
@@ -10,7 +10,7 @@ from typing import Optional, List, IO
|
||||
|
||||
from ..main import version, docstring
|
||||
from ..config import OUTPUT_DIR
|
||||
from ..logging import SmartFormatter, reject_stdin
|
||||
from ..logging_util import SmartFormatter, reject_stdin
|
||||
|
||||
|
||||
@docstring(version.__doc__)
|
||||
|
||||
Reference in New Issue
Block a user