Skip to content

Commit

Permalink
Update abstra-lib
Browse files Browse the repository at this point in the history
  • Loading branch information
abstra-bot committed Dec 30, 2024
1 parent 3b9a86a commit cb3e1a8
Show file tree
Hide file tree
Showing 222 changed files with 396 additions and 394 deletions.
3 changes: 2 additions & 1 deletion abstra_internals/cloud/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from abstra_internals.controllers import execution_process
from abstra_internals.controllers.execution_consumer import ExecutionConsumer
from abstra_internals.controllers.main import MainController
from abstra_internals.environment import RABBITMQ_CONNECTION_URI
from abstra_internals.environment import DEFAULT_PORT, RABBITMQ_CONNECTION_URI
from abstra_internals.logger import AbstraLogger
from abstra_internals.repositories.consumer import RabbitConsumer
from abstra_internals.repositories.factory import get_prodution_app_repositories
Expand All @@ -15,6 +15,7 @@ def run():
SignalHandlers.init()
AbstraLogger.init("cloud")
SettingsController.set_root_path(".")
SettingsController.set_server_port(DEFAULT_PORT)

if not RABBITMQ_CONNECTION_URI:
raise Exception("RABBITMQ_CONNECTION_URI not found")
Expand Down
1 change: 1 addition & 0 deletions abstra_internals/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

DEFAULT_LOGLEVEL = "WARNING"
LOGLEVEL = lambda: os.getenv("ABSTRA_LOGLEVEL", DEFAULT_LOGLEVEL) # noqa: E731
NOISY_LOGLEVEL = lambda: os.getenv("ABSTRA_NOISY_LOGLEVEL", DEFAULT_LOGLEVEL) # noqa: E731

PROCESS_LOGFORMAT = "[%(asctime)s][%(levelname)s][%(name)s][%(process)d]%(message)s"
DEFAULT_LOGFORMAT = "[%(asctime)s][%(levelname)s][%(name)s] %(message)s"
Expand Down
6 changes: 3 additions & 3 deletions abstra_internals/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import sentry_sdk
from sentry_sdk.integrations.logging import LoggingIntegration

from abstra_internals.environment import LOGFORMAT, LOGLEVEL
from abstra_internals.environment import LOGFORMAT, LOGLEVEL, NOISY_LOGLEVEL
from abstra_internals.utils.env import is_dev_env, is_test_env

internal_logger = lambda: logging.getLogger("abstra_internal") # noqa: E731
Expand Down Expand Up @@ -43,8 +43,8 @@ def init(cls, environment: Optional[Environment]):
logging.basicConfig(level=LOGLEVEL(), format=LOGFORMAT())

# Silence verbose dependencies
logging.getLogger("pika").setLevel(logging.WARNING)
logging.getLogger("werkzeug").setLevel(logging.WARNING)
logging.getLogger("pika").setLevel(NOISY_LOGLEVEL())
logging.getLogger("werkzeug").setLevel(NOISY_LOGLEVEL())

try:
cls.get_sdk().init(
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions abstra_statics/dist/assets/ApiKeys.29e93f34.js

This file was deleted.

2 changes: 2 additions & 0 deletions abstra_statics/dist/assets/ApiKeys.7685aba5.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions abstra_statics/dist/assets/App.7633b003.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions abstra_statics/dist/assets/App.a526c9aa.js

This file was deleted.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cb3e1a8

Please sign in to comment.