Changed some erroneously labeled messages as an error.

This commit is contained in:
Jose Marcial Vieira Bisneto 2018-10-25 18:44:19 -03:00
parent 0037be0594
commit 35b20c9a2e
No known key found for this signature in database
GPG key ID: 103E935E7E6E831E
3 changed files with 4 additions and 3 deletions

View file

@ -750,7 +750,7 @@ int api_start (struct IpfsNode* local_node, int max_conns, int timeout)
return 0;
}
libp2p_logger_debug("api", "Started API on localhost port %d.\n", port);
libp2p_logger_info("api", "API server listening on %d.\n", port);
return 1;
}

View file

@ -70,8 +70,9 @@ int ipfs_daemon (int argc, char **argv)
{
char* repo_path = NULL;
libp2p_logger_add_class("daemon");
if (!ipfs_repo_get_directory(argc, argv, &repo_path)) {
fprintf(stderr, "Unable to open repo: %s\n", repo_path);
libp2p_logger_error("daemon", "Unable to open repo: %s\n", repo_path);
return 0;
}

View file

@ -165,7 +165,7 @@ void* ipfs_null_listen (void *ptr)
return (void*) 2;
}
libp2p_logger_error("null", "Ipfs listening on %d\n", listen_param->port);
libp2p_logger_info("null", "Ipfs listening on %d\n", listen_param->port);
// when we have nothing to do, check on the connections to see if we're still connected
struct Libp2pLinkedList* current_peer_entry = NULL;