mirror of
https://github.com/Novartis/cellxgene-gateway.git
synced 2026-10-08 12:28:11 +08:00
#2 replace print() with logging
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
# the specific language governing permissions and limitations under the License.
|
# the specific language governing permissions and limitations under the License.
|
||||||
|
|
||||||
import time
|
import time
|
||||||
|
import logging
|
||||||
|
|
||||||
from cellxgene_gateway.util import current_time_stamp
|
from cellxgene_gateway.util import current_time_stamp
|
||||||
from cellxgene_gateway.env import ttl
|
from cellxgene_gateway.env import ttl
|
||||||
@@ -32,5 +33,5 @@ class PruneProcessCache:
|
|||||||
for process in processes_to_delete:
|
for process in processes_to_delete:
|
||||||
try:
|
try:
|
||||||
cache.prune(process)
|
cache.prune(process)
|
||||||
except Exception as detail:
|
except Exception:
|
||||||
print("failed to prune process:", detail)
|
logging.getLogger("werkzeug").exception("failed to prune process")
|
||||||
|
|||||||
Reference in New Issue
Block a user