■ ■ ■ ■ ■ ■
changedetectionio/__init__.py
| skipped 1454 lines |
1455 | 1455 | | proxy_list_reuse_time_minimum = int(datastore.proxy_list.get(watch_proxy, {}).get('reuse_time_minimum', 0)) |
1456 | 1456 | | if proxy_list_reuse_time_minimum: |
1457 | 1457 | | proxy_last_used_time = proxy_last_called_time.get(watch_proxy, 0) |
1458 | | - | time_since_proxy_used = time.time() - proxy_last_used_time |
| 1458 | + | time_since_proxy_used = int(time.time() - proxy_last_used_time) |
1459 | 1459 | | if time_since_proxy_used < proxy_list_reuse_time_minimum: |
1460 | 1460 | | # Not enough time difference reached, skip this watch |
1461 | | - | print("Skipped UUID {} on proxy {}, not enough time between proxy requests".format(uuid, watch_proxy)) |
| 1461 | + | print("> Skipped UUID {} using proxy '{}', not enough time between proxy requests {}s/{}s".format(uuid, |
| 1462 | + | watch_proxy, |
| 1463 | + | time_since_proxy_used, |
| 1464 | + | proxy_list_reuse_time_minimum)) |
1462 | 1465 | | continue |
1463 | 1466 | | else: |
1464 | 1467 | | # Record the last used time |
| skipped 24 lines |