diff --git a/cnn_classification_service/main.py b/cnn_classification_service/main.py index e234b02..84b7d5f 100644 --- a/cnn_classification_service/main.py +++ b/cnn_classification_service/main.py @@ -24,7 +24,7 @@ def message_callback(ch, method, properties, body): def main(): - logging.basicConfig(stream=sys.stdout, filename="", format="%(asctime)s - %(name)s [%(levelname)s]: %(message)s", + logging.basicConfig(stream=sys.stdout, format="%(asctime)s - %(name)s [%(levelname)s]: %(message)s", level=logging.DEBUG if '--debug' in sys.argv else logging.INFO) SENTRY_DSN = os.environ.get("SENTRY_DSN") diff --git a/docker-compose.yml b/docker-compose.yml index ff62cae..29880dc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,12 +19,11 @@ services: - "127.0.0.1:15672:15672" - "127.0.0.1:5672:5672" - cnc-service: - image: registry.kmlabz.com/birbnetes/activemq-artemis + cnn-service: + image: registry.kmlabz.com/birbnetes/cnn-classification-service restart: always depends_on: - - activemq - - postgres + - rabbitmq environment: SENTRY_DSN: https://094270eeb6a7450ead80e87d04cd7552@sentry.kmlabz.com/4 RELEASE_ID: compose