summaryrefslogtreecommitdiffstats
path: root/loader2/urls.c
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2005-08-13 00:52:40 +0000
committerChris Lumens <clumens@redhat.com>2005-08-13 00:52:40 +0000
commit26091625f3cf24dc0ba5bf655a83a868c5b20e89 (patch)
treea492c91713966c8050f0cee47cad79e87d15dbea /loader2/urls.c
parenta96d25d6bdae5703ff8d9ee5993d9942f2a6a48d (diff)
downloadanaconda-26091625f3cf24dc0ba5bf655a83a868c5b20e89.tar.gz
anaconda-26091625f3cf24dc0ba5bf655a83a868c5b20e89.tar.xz
anaconda-26091625f3cf24dc0ba5bf655a83a868c5b20e89.zip
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.
Diffstat (limited to 'loader2/urls.c')
-rw-r--r--loader2/urls.c8
1 files changed, 4 insertions, 4 deletions
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);