Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
Remove all logging logic. It needs a fresh try
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-christensen committed Aug 11, 2019
1 parent 1356190 commit 49ab205
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 25 deletions.
3 changes: 0 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@
import lbp_print.config as lbp_config

from processor import handle_job
from utils import setup_logger

# App version
__VERSION__ = subprocess.check_output("git describe --tags", shell=True).decode()

app = Flask(__name__, instance_path=os.getcwd())

logger = setup_logger("print_api")


@app.route("/api/v1/resource")
def process_resource():
Expand Down
6 changes: 3 additions & 3 deletions processor.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import logging

from redis import Redis
from rq import get_current_job, Queue
from rq.job import Job
Expand All @@ -7,12 +9,10 @@
import lbp_print.config as lbp_config
from lbp_print.exceptions import SaxonError

from utils import setup_logger
logger = logging.getLogger()

lbp_config.cache_dir = "cache"

logger = setup_logger("print_api")

q = Queue(connection=Redis())


Expand Down
19 changes: 0 additions & 19 deletions utils.py

This file was deleted.

0 comments on commit 49ab205

Please sign in to comment.