Skip to content

Commit

Permalink
fix empty logging, bump version (#51)
Browse files Browse the repository at this point in the history
Co-authored-by: dustinlo <dustin.k.lo@jpl.nasa.gov>
  • Loading branch information
DustinKLo and dustinlo authored May 30, 2023
1 parent 9088127 commit c238340
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions mozart/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
standard_library.install_aliases()

import os

from flask import Flask, jsonify
from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager
Expand Down Expand Up @@ -142,3 +143,12 @@ def resource_not_found(e):

from mozart.services.api_v02.service import services as api_v02_services
app.register_blueprint(api_v02_services)


if __name__ != '__main__':
import logging

gunicorn_logger = logging.getLogger('gunicorn.error')
app.logger.handlers = gunicorn_logger.handlers
app.logger.setLevel(gunicorn_logger.level)
app.logger.propagate = False
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name='mozart',
version='2.2.2',
version='2.2.3',
long_description='HySDS job orchestration/worker web interface',
packages=find_packages(),
include_package_data=True,
Expand Down

0 comments on commit c238340

Please sign in to comment.