seamus

commit abeeaae9906d9f4358952fb01eb9d88808f39f0f

Author: Pedro Lucas Porcellis <porcellis@eletrotupi.com>

all: replace fprintf with log_* calls

 src/seamus.c | 8 +++++---


diff --git a/src/seamus.c b/src/seamus.c
index b80b655226a9b494ab061ba67131bad5daf3bfea..80f64ab259540b217f9f58cba5fc9e262b91f423 100755
--- a/src/seamus.c
+++ b/src/seamus.c
@@ -20,7 +20,7 @@ 	if (mpd_connection_get_error(connection) != MPD_ERROR_SUCCESS) {
 		const char *message = mpd_connection_get_error_message(connection);
 		mpd_connection_free(connection);
 
-		fprintf(stderr, "MPD connection error: %s\n", message);
+		log_error("MPD connection error: %s", message);
 		return 1;
 	}
 
@@ -52,8 +52,8 @@ {
 	// Setup MPD connection
 	int mpd_con = setup_connection(s);
 	if (mpd_con != 0) {
-		// replace with a unified log
-		fprintf(stderr, "Weren't able to connect with MPD");
+		log_error("Weren't able to connect with MPD");
+
 		return 1;
 	}
 }
@@ -67,6 +67,7 @@ 	int r = seamus_init(&seamus);
 
 	if (r != 0) {
 		log_fatal("Couldn't initialize seamus");
+
 		return 1;
 	}
 
@@ -74,6 +75,7 @@ 	r = tickit_init(&seamus);
 
 	if (r != 0) {
 		log_fatal("Something went wrong when initializing tickit");
+
 		goto exit_tickit;
 	}