From 51a0a2319186bf8560f36d305f8e7ee573d956ab Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Tue, 4 Apr 2023 10:52:18 +0700 Subject: add time taken on product sync apache.solr --- indoteknik_custom/models/apache_solr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indoteknik_custom/models/apache_solr.py b/indoteknik_custom/models/apache_solr.py index 0759d4a3..3ed431ef 100644 --- a/indoteknik_custom/models/apache_solr.py +++ b/indoteknik_custom/models/apache_solr.py @@ -91,4 +91,4 @@ class ApacheSolr(models.Model): _logger.info('[SYNC_PRODUCT_TO_SOLR] Success add to solr product %s' % template.id) solr.add(documents) end_time = time.time() - print("[SYNC_PRODUCT_TO_SOLR] Finish task add to solr. Time taken: {:.6f} seconds".format(end_time - start_time)) + _logger.info("[SYNC_PRODUCT_TO_SOLR] Finish task add to solr. Time taken: {:.6f} seconds".format(end_time - start_time)) -- cgit v1.2.3