Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Strand Lab
Strand Lab Cellxgene Gateway
Commits
0b267725
Commit
0b267725
authored
Sep 17, 2019
by
Alok Saldanha
Browse files
#2 replace print() with logging
parent
5c41dbb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
cellxgene_gateway/prune_process_cache.py
View file @
0b267725
...
...
@@ -8,6 +8,7 @@
# the specific language governing permissions and limitations under the License.
import
time
import
logging
from
cellxgene_gateway.util
import
current_time_stamp
from
cellxgene_gateway.env
import
ttl
...
...
@@ -32,5 +33,5 @@ class PruneProcessCache:
for
process
in
processes_to_delete
:
try
:
cache
.
prune
(
process
)
except
Exception
as
detail
:
print
(
"failed to prune process
:"
,
detail
)
except
Exception
:
logging
.
getLogger
(
"werkzeug"
).
exception
(
"failed to prune process
"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment