diff options
| author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-06-13 10:47:01 +0000 |
|---|---|---|
| committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-06-13 10:47:01 +0000 |
| commit | f4e1aa8c6bba3aa96121a1c77996a5b1a3cc4485 (patch) | |
| tree | f76dea3b54184ca0718716df57ef85f7191af997 /src/libs/zbxcommon | |
| parent | c4cbbdf7915a3526ebf81084b1254934ab9ed7ad (diff) | |
| download | zabbix-f4e1aa8c6bba3aa96121a1c77996a5b1a3cc4485.tar.gz zabbix-f4e1aa8c6bba3aa96121a1c77996a5b1a3cc4485.tar.xz zabbix-f4e1aa8c6bba3aa96121a1c77996a5b1a3cc4485.zip | |
- minor change for Alias (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@4269 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src/libs/zbxcommon')
| -rw-r--r-- | src/libs/zbxcommon/alias.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libs/zbxcommon/alias.c b/src/libs/zbxcommon/alias.c index d9f84107..46c4d321 100644 --- a/src/libs/zbxcommon/alias.c +++ b/src/libs/zbxcommon/alias.c @@ -19,7 +19,8 @@ #include "common.h" #include "alias.h" - +#include "log.h" + /* Static data */ static ALIAS *aliasList=NULL; @@ -64,6 +65,7 @@ int add_alias(const char *name, const char *value) alias->next=aliasList; aliasList=alias; + zabbix_log( LOG_LEVEL_DEBUG, "Alias added. [%s] -> [%s]", name, value); return SUCCEED; } break; @@ -85,9 +87,11 @@ int add_alias(const char *name, const char *value) alias->next = aliasList; aliasList = alias; + zabbix_log( LOG_LEVEL_DEBUG, "Alias replaced. [%s] -> [%s]", name, value); return SUCCEED; } } + zabbix_log( LOG_LEVEL_WARNING, "Alias FAILED. [%s] -> [%s]", name, value); return FAIL; } |
