summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cbc244b)
raw | patch | inline | side by side (parent: cbc244b)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 15 Mar 2010 21:09:08 +0000 (22:09 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 15 Mar 2010 21:09:08 +0000 (22:09 +0100) |
src/logfile.c | patch | blob | history |
diff --git a/src/logfile.c b/src/logfile.c
index 6da13df2e688af2e1d53c13f14b87ca5b92ef843..6d0f6e07826f2eb5391a64bc93db72e642948362 100644 (file)
--- a/src/logfile.c
+++ b/src/logfile.c
static char *log_file = NULL;
static int print_timestamp = 1;
-static int print_level = 0;
+static int print_severity = 0;
static const char *config_keys[] =
{
"LogLevel",
"File",
"Timestamp",
- "PrintLevel"
+ "PrintSeverity"
};
static int config_keys_num = STATIC_ARRAY_SIZE (config_keys);
print_timestamp = 0;
else
print_timestamp = 1;
- } else if (0 == strcasecmp(key, "PrintLevel")) {
+ } else if (0 == strcasecmp(key, "PrintSeverity")) {
if (IS_FALSE (value))
- print_level = 0;
+ print_severity = 0;
else
- print_level = 1;
+ print_severity = 1;
}
else {
return -1;
@@ -100,7 +100,7 @@ static void logfile_print (const char *msg, int severity, time_t timestamp_time)
char timestamp_str[64];
char level_str[16] = "";
- if (print_level)
+ if (print_severity)
{
switch (severity)
{