Skip to content
This repository has been archived by the owner on Jun 2, 2019. It is now read-only.

Commit

Permalink
add logg on request url
Browse files Browse the repository at this point in the history
  • Loading branch information
T4ze committed Dec 9, 2017
1 parent c4b5cc6 commit 8059a76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/epita/guereza/UrlStore.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ private void addUrls(Event<String[]> event) {

private void crawlerRequestUrl(Event<String> event) {
try {
LOGGER.info("Still {} urls to crawl", crawlerTodo.size());
eventBus.publish(new EventMessage(event.obj, crawlerTodo.poll()));
} catch (JsonProcessingException e) {
LOGGER.error("cannot serialize: {}", e.getMessage());
Expand All @@ -71,6 +72,7 @@ private void crawlerRequestUrl(Event<String> event) {

private void indexerRequestUrl(Event<String> event) {
try {
LOGGER.info("Still {} urls to index", indexerTodo.size());
eventBus.publish(new EventMessage(event.obj, indexerTodo.poll()));
} catch (JsonProcessingException e) {
LOGGER.error("cannot serialize: {}", e.getMessage());
Expand Down

0 comments on commit 8059a76

Please sign in to comment.