Skip to content

Commit 2c5f217

Browse files
committed
Make apify.log public again
1 parent 85315df commit 2c5f217

File tree

7 files changed

+6
-21
lines changed

7 files changed

+6
-21
lines changed

src/apify/_actor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
from apify._configuration import Configuration
2020
from apify._consts import EVENT_LISTENERS_TIMEOUT
2121
from apify._crypto import decrypt_input_secrets, load_private_key
22-
from apify._log import logger
2322
from apify._platform_event_manager import EventManager, LocalEventManager, PlatformEventManager
2423
from apify._proxy_configuration import ProxyConfiguration
2524
from apify._utils import get_system_info, is_running_in_ipython
2625
from apify.apify_storage_client import ApifyStorageClient
26+
from apify.log import logger
2727
from apify.storages import Dataset, KeyValueStore, RequestQueue
2828

2929
if TYPE_CHECKING:

src/apify/_log.py

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/apify/_platform_event_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
EventSystemInfoData,
2121
)
2222

23-
from apify._log import logger
23+
from apify.log import logger
2424

2525
if TYPE_CHECKING:
2626
from types import TracebackType

src/apify/_proxy_configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from crawlee.proxy_configuration import _NewUrlFunction
1717

1818
from apify._configuration import Configuration
19-
from apify._log import logger
19+
from apify.log import logger
2020

2121
if TYPE_CHECKING:
2222
from apify_client import ApifyClientAsync

tests/integration/actor_source_base/src/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import logging
55

66
from .main import main
7-
from apify._log import ActorLogFormatter
7+
from apify.log import ActorLogFormatter
88

99
handler = logging.StreamHandler()
1010
handler.setFormatter(ActorLogFormatter())

tests/integration/test_actor_log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ async def test_actor_log(self: TestActorLog, make_actor: ActorFactory) -> None:
1313
async def main() -> None:
1414
import logging
1515

16-
from apify._log import ActorLogFormatter, logger
16+
from apify.log import ActorLogFormatter, logger
1717

1818
# Clear any other log handlers, so they don't mess with this test
1919
client_logger = logging.getLogger('apify_client')

tests/unit/actor/test_actor_log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from apify_client import __version__ as apify_client_version
99

1010
from apify import Actor, __version__
11-
from apify._log import logger
11+
from apify.log import logger
1212

1313
if TYPE_CHECKING:
1414
import pytest

0 commit comments

Comments
 (0)