Redo logging
This commit is contained in:
parent
f1ff5330d9
commit
0a1fa331f8
@ -35,12 +35,12 @@ static const linkStruct links[] = {
|
||||
/*
|
||||
* 0: Fatal errors
|
||||
* 1: Errors
|
||||
* 2: Warnings
|
||||
* 2: Normal output
|
||||
* 3: Info messages
|
||||
* 4: Verbose mode
|
||||
*/
|
||||
|
||||
static const int logLevel = 3;
|
||||
static const int logLevel = 2;
|
||||
|
||||
// Set the maximum amount of redirects curl will follow.
|
||||
// Use 0 to disable redirects, and -1 for no limit.
|
||||
|
4
minrss.c
4
minrss.c
@ -82,7 +82,7 @@ itemAction(itemStruct *item, const char *folder)
|
||||
}
|
||||
|
||||
if (newItems)
|
||||
logMsg(2, "%d new articles for feed %s.\n", newItems, folder);
|
||||
logMsg(2, "%s : %d new articles\n", folder, newItems);
|
||||
}
|
||||
|
||||
void
|
||||
@ -126,7 +126,7 @@ main(int argc, char *argv[])
|
||||
logMsg(3, "Finished downloads.\n");
|
||||
|
||||
for (i = 0; i < LEN(links); i++) {
|
||||
logMsg(4, "Parsing %s\n", links[i].url);
|
||||
logMsg(5, "Parsing %s\n", links[i].url);
|
||||
|
||||
if (outputs[i].buffer && outputs[i].buffer[0]) {
|
||||
readDoc(outputs[i].buffer, links[i].feedName, itemAction);
|
||||
|
Loading…
Reference in New Issue
Block a user