From 26091625f3cf24dc0ba5bf655a83a868c5b20e89 Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Sat, 13 Aug 2005 00:52:40 +0000 Subject: Support logging levels in the loader just like in the python parts of the installer. Also make the output look the same. This isn't going to be nearly as sophisticated as the python logging module, but it will at least behave similarly with command line options. --- loader2/urls.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'loader2/urls.c') diff --git a/loader2/urls.c b/loader2/urls.c index be39c797f..a9bcc974f 100644 --- a/loader2/urls.c +++ b/loader2/urls.c @@ -69,7 +69,7 @@ int convertURLToUI(char *url, struct iurlinfo *ui) { ui->protocol = URL_METHOD_HTTP; url +=7; } else { - logMessage("unknown url protocol '%s'", url); + logMessage(ERROR, "unknown url protocol '%s'", url); return -1; } @@ -81,8 +81,8 @@ int convertURLToUI(char *url, struct iurlinfo *ui) { *url = '/'; ui->prefix = strdup(url); - logMessage("url address %s", ui->address); - logMessage("url prefix %s", ui->prefix); + logMessage(INFO, "url address %s", ui->address); + logMessage(INFO, "url prefix %s", ui->prefix); return 0; } @@ -155,7 +155,7 @@ int urlinstStartTransfer(struct iurlinfo * ui, char * filename, else finalPrefix = ui->prefix; - logMessage("transferring %s://%s/%s/%s to a fd", + logMessage(INFO, "transferring %s://%s/%s/%s to a fd", ui->protocol == URL_METHOD_FTP ? "ftp" : "http", ui->address, finalPrefix, filename); -- cgit