Merge pull request #379 from cdvv7788/hotfix/#372-b
#372 Rename logging module to avoid conflicts
This commit is contained in:
commit
0aa3ee06a9
29 changed files with 28 additions and 28 deletions
|
@ -110,7 +110,7 @@ def main(args: Optional[List[str]]=NotProvided, stdin: Optional[IO]=NotProvided,
|
||||||
command.subcommand = 'version'
|
command.subcommand = 'version'
|
||||||
|
|
||||||
if command.subcommand not in ('help', 'version', 'status'):
|
if command.subcommand not in ('help', 'version', 'status'):
|
||||||
from ..logging import log_cli_command
|
from ..logging_util import log_cli_command
|
||||||
|
|
||||||
log_cli_command(
|
log_cli_command(
|
||||||
subcommand=command.subcommand,
|
subcommand=command.subcommand,
|
||||||
|
|
|
@ -10,7 +10,7 @@ from typing import List, Optional, IO
|
||||||
|
|
||||||
from ..main import add, docstring
|
from ..main import add, docstring
|
||||||
from ..config import OUTPUT_DIR, ONLY_NEW
|
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__)
|
@docstring(add.__doc__)
|
||||||
|
|
|
@ -10,7 +10,7 @@ from typing import Optional, List, IO
|
||||||
|
|
||||||
from ..main import config, docstring
|
from ..main import config, docstring
|
||||||
from ..config import OUTPUT_DIR
|
from ..config import OUTPUT_DIR
|
||||||
from ..logging import SmartFormatter, accept_stdin
|
from ..logging_util import SmartFormatter, accept_stdin
|
||||||
|
|
||||||
|
|
||||||
@docstring(config.__doc__)
|
@docstring(config.__doc__)
|
||||||
|
|
|
@ -10,7 +10,7 @@ from typing import Optional, List, IO
|
||||||
|
|
||||||
from ..main import help, docstring
|
from ..main import help, docstring
|
||||||
from ..config import OUTPUT_DIR
|
from ..config import OUTPUT_DIR
|
||||||
from ..logging import SmartFormatter, reject_stdin
|
from ..logging_util import SmartFormatter, reject_stdin
|
||||||
|
|
||||||
|
|
||||||
@docstring(help.__doc__)
|
@docstring(help.__doc__)
|
||||||
|
|
|
@ -10,7 +10,7 @@ from typing import Optional, List, IO
|
||||||
|
|
||||||
from ..main import init, docstring
|
from ..main import init, docstring
|
||||||
from ..config import OUTPUT_DIR
|
from ..config import OUTPUT_DIR
|
||||||
from ..logging import SmartFormatter, reject_stdin
|
from ..logging_util import SmartFormatter, reject_stdin
|
||||||
|
|
||||||
|
|
||||||
@docstring(init.__doc__)
|
@docstring(init.__doc__)
|
||||||
|
|
|
@ -22,7 +22,7 @@ from ..index import (
|
||||||
get_corrupted_folders,
|
get_corrupted_folders,
|
||||||
get_unrecognized_folders,
|
get_unrecognized_folders,
|
||||||
)
|
)
|
||||||
from ..logging import SmartFormatter, accept_stdin
|
from ..logging_util import SmartFormatter, accept_stdin
|
||||||
|
|
||||||
|
|
||||||
@docstring(list_all.__doc__)
|
@docstring(list_all.__doc__)
|
||||||
|
|
|
@ -10,7 +10,7 @@ from typing import Optional, List, IO
|
||||||
|
|
||||||
from ..main import remove, docstring
|
from ..main import remove, docstring
|
||||||
from ..config import OUTPUT_DIR
|
from ..config import OUTPUT_DIR
|
||||||
from ..logging import SmartFormatter, accept_stdin
|
from ..logging_util import SmartFormatter, accept_stdin
|
||||||
|
|
||||||
|
|
||||||
@docstring(remove.__doc__)
|
@docstring(remove.__doc__)
|
||||||
|
|
|
@ -10,7 +10,7 @@ from typing import Optional, List, IO
|
||||||
|
|
||||||
from ..main import schedule, docstring
|
from ..main import schedule, docstring
|
||||||
from ..config import OUTPUT_DIR
|
from ..config import OUTPUT_DIR
|
||||||
from ..logging import SmartFormatter, reject_stdin
|
from ..logging_util import SmartFormatter, reject_stdin
|
||||||
|
|
||||||
|
|
||||||
@docstring(schedule.__doc__)
|
@docstring(schedule.__doc__)
|
||||||
|
|
|
@ -10,7 +10,7 @@ from typing import Optional, List, IO
|
||||||
|
|
||||||
from ..main import server, docstring
|
from ..main import server, docstring
|
||||||
from ..config import OUTPUT_DIR
|
from ..config import OUTPUT_DIR
|
||||||
from ..logging import SmartFormatter, reject_stdin
|
from ..logging_util import SmartFormatter, reject_stdin
|
||||||
|
|
||||||
|
|
||||||
@docstring(server.__doc__)
|
@docstring(server.__doc__)
|
||||||
|
|
|
@ -10,7 +10,7 @@ from typing import Optional, List, IO
|
||||||
|
|
||||||
from ..main import shell, docstring
|
from ..main import shell, docstring
|
||||||
from ..config import OUTPUT_DIR
|
from ..config import OUTPUT_DIR
|
||||||
from ..logging import SmartFormatter, reject_stdin
|
from ..logging_util import SmartFormatter, reject_stdin
|
||||||
|
|
||||||
|
|
||||||
@docstring(shell.__doc__)
|
@docstring(shell.__doc__)
|
||||||
|
|
|
@ -10,7 +10,7 @@ from typing import Optional, List, IO
|
||||||
|
|
||||||
from ..main import status, docstring
|
from ..main import status, docstring
|
||||||
from ..config import OUTPUT_DIR
|
from ..config import OUTPUT_DIR
|
||||||
from ..logging import SmartFormatter, reject_stdin
|
from ..logging_util import SmartFormatter, reject_stdin
|
||||||
|
|
||||||
|
|
||||||
@docstring(status.__doc__)
|
@docstring(status.__doc__)
|
||||||
|
|
|
@ -22,7 +22,7 @@ from ..index import (
|
||||||
get_corrupted_folders,
|
get_corrupted_folders,
|
||||||
get_unrecognized_folders,
|
get_unrecognized_folders,
|
||||||
)
|
)
|
||||||
from ..logging import SmartFormatter, accept_stdin
|
from ..logging_util import SmartFormatter, accept_stdin
|
||||||
|
|
||||||
|
|
||||||
@docstring(update.__doc__)
|
@docstring(update.__doc__)
|
||||||
|
|
|
@ -10,7 +10,7 @@ from typing import Optional, List, IO
|
||||||
|
|
||||||
from ..main import version, docstring
|
from ..main import version, docstring
|
||||||
from ..config import OUTPUT_DIR
|
from ..config import OUTPUT_DIR
|
||||||
from ..logging import SmartFormatter, reject_stdin
|
from ..logging_util import SmartFormatter, reject_stdin
|
||||||
|
|
||||||
|
|
||||||
@docstring(version.__doc__)
|
@docstring(version.__doc__)
|
||||||
|
|
|
@ -3,7 +3,7 @@ from django.utils.html import format_html
|
||||||
|
|
||||||
from util import htmldecode, urldecode
|
from util import htmldecode, urldecode
|
||||||
from core.models import Snapshot
|
from core.models import Snapshot
|
||||||
from archivebox.logging import printable_filesize
|
from archivebox.logging_util import printable_filesize
|
||||||
|
|
||||||
# TODO: https://stackoverflow.com/questions/40760880/add-custom-button-to-django-admin-panel
|
# TODO: https://stackoverflow.com/questions/40760880/add-custom-button-to-django-admin-panel
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
from archivebox.logging import log_shell_welcome_msg
|
from archivebox.logging_util import log_shell_welcome_msg
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
|
@ -12,7 +12,7 @@ from ..index import (
|
||||||
patch_main_index,
|
patch_main_index,
|
||||||
)
|
)
|
||||||
from ..util import enforce_types
|
from ..util import enforce_types
|
||||||
from ..logging import (
|
from ..logging_util import (
|
||||||
log_archiving_started,
|
log_archiving_started,
|
||||||
log_archiving_paused,
|
log_archiving_paused,
|
||||||
log_archiving_finished,
|
log_archiving_finished,
|
||||||
|
|
|
@ -19,7 +19,7 @@ from ..config import (
|
||||||
CURL_VERSION,
|
CURL_VERSION,
|
||||||
CURL_USER_AGENT,
|
CURL_USER_AGENT,
|
||||||
)
|
)
|
||||||
from ..logging import TimedProgress
|
from ..logging_util import TimedProgress
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ from ..config import (
|
||||||
SAVE_DOM,
|
SAVE_DOM,
|
||||||
CHROME_VERSION,
|
CHROME_VERSION,
|
||||||
)
|
)
|
||||||
from ..logging import TimedProgress
|
from ..logging_util import TimedProgress
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ from ..config import (
|
||||||
CHECK_SSL_VALIDITY,
|
CHECK_SSL_VALIDITY,
|
||||||
CURL_USER_AGENT,
|
CURL_USER_AGENT,
|
||||||
)
|
)
|
||||||
from ..logging import TimedProgress
|
from ..logging_util import TimedProgress
|
||||||
|
|
||||||
|
|
||||||
@enforce_types
|
@enforce_types
|
||||||
|
|
|
@ -22,7 +22,7 @@ from ..config import (
|
||||||
GIT_DOMAINS,
|
GIT_DOMAINS,
|
||||||
CHECK_SSL_VALIDITY
|
CHECK_SSL_VALIDITY
|
||||||
)
|
)
|
||||||
from ..logging import TimedProgress
|
from ..logging_util import TimedProgress
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ from ..config import (
|
||||||
YOUTUBEDL_VERSION,
|
YOUTUBEDL_VERSION,
|
||||||
CHECK_SSL_VALIDITY
|
CHECK_SSL_VALIDITY
|
||||||
)
|
)
|
||||||
from ..logging import TimedProgress
|
from ..logging_util import TimedProgress
|
||||||
|
|
||||||
|
|
||||||
@enforce_types
|
@enforce_types
|
||||||
|
|
|
@ -16,7 +16,7 @@ from ..config import (
|
||||||
SAVE_PDF,
|
SAVE_PDF,
|
||||||
CHROME_VERSION,
|
CHROME_VERSION,
|
||||||
)
|
)
|
||||||
from ..logging import TimedProgress
|
from ..logging_util import TimedProgress
|
||||||
|
|
||||||
|
|
||||||
@enforce_types
|
@enforce_types
|
||||||
|
|
|
@ -16,7 +16,7 @@ from ..config import (
|
||||||
SAVE_SCREENSHOT,
|
SAVE_SCREENSHOT,
|
||||||
CHROME_VERSION,
|
CHROME_VERSION,
|
||||||
)
|
)
|
||||||
from ..logging import TimedProgress
|
from ..logging_util import TimedProgress
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ from ..config import (
|
||||||
CURL_VERSION,
|
CURL_VERSION,
|
||||||
CURL_USER_AGENT,
|
CURL_USER_AGENT,
|
||||||
)
|
)
|
||||||
from ..logging import TimedProgress
|
from ..logging_util import TimedProgress
|
||||||
|
|
||||||
|
|
||||||
HTML_TITLE_REGEX = re.compile(
|
HTML_TITLE_REGEX = re.compile(
|
||||||
|
|
|
@ -31,7 +31,7 @@ from ..config import (
|
||||||
WGET_USER_AGENT,
|
WGET_USER_AGENT,
|
||||||
COOKIES_FILE,
|
COOKIES_FILE,
|
||||||
)
|
)
|
||||||
from ..logging import TimedProgress
|
from ..logging_util import TimedProgress
|
||||||
|
|
||||||
|
|
||||||
@enforce_types
|
@enforce_types
|
||||||
|
|
|
@ -27,7 +27,7 @@ from ..config import (
|
||||||
ANSI,
|
ANSI,
|
||||||
stderr,
|
stderr,
|
||||||
)
|
)
|
||||||
from ..logging import (
|
from ..logging_util import (
|
||||||
TimedProgress,
|
TimedProgress,
|
||||||
log_indexing_process_started,
|
log_indexing_process_started,
|
||||||
log_indexing_process_finished,
|
log_indexing_process_finished,
|
||||||
|
|
|
@ -88,7 +88,7 @@ from .config import (
|
||||||
USER_CONFIG,
|
USER_CONFIG,
|
||||||
get_real_name,
|
get_real_name,
|
||||||
)
|
)
|
||||||
from .logging import (
|
from .logging_util import (
|
||||||
TERM_WIDTH,
|
TERM_WIDTH,
|
||||||
TimedProgress,
|
TimedProgress,
|
||||||
log_importing_started,
|
log_importing_started,
|
||||||
|
|
|
@ -29,7 +29,7 @@ from ..util import (
|
||||||
URL_REGEX,
|
URL_REGEX,
|
||||||
)
|
)
|
||||||
from ..index.schema import Link
|
from ..index.schema import Link
|
||||||
from ..logging import pretty_path, TimedProgress, log_source_saved
|
from ..logging_util import pretty_path, TimedProgress, log_source_saved
|
||||||
from .pocket_html import parse_pocket_html_export
|
from .pocket_html import parse_pocket_html_export
|
||||||
from .pinboard_rss import parse_pinboard_rss_export
|
from .pinboard_rss import parse_pinboard_rss_export
|
||||||
from .shaarli_rss import parse_shaarli_rss_export
|
from .shaarli_rss import parse_shaarli_rss_export
|
||||||
|
|
Loading…
Reference in a new issue