diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-04-04 10:52:18 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-04-04 10:52:18 +0700 |
| commit | 51a0a2319186bf8560f36d305f8e7ee573d956ab (patch) | |
| tree | e02aada3cc80cb246b0e4358b0e6530430dbb44e | |
| parent | 9498bce18a3125babebfd2846a08fd5202336741 (diff) | |
add time taken on product sync apache.solr
| -rw-r--r-- | indoteknik_custom/models/apache_solr.py | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |
