From c25216dddce631423846d782136f69ea873c079c Mon Sep 17 00:00:00 2001 From: Anoop Saldanha Date: Mon, 4 Jan 2010 10:29:16 +0530 Subject: [PATCH] Change error log messags to debug ones in the log modules --- src/alert-debuglog.c | 6 ++---- src/alert-fastlog.c | 6 ++---- src/alert-unified-alert.c | 3 +-- src/alert-unified-log.c | 3 +-- src/alert-unified2-alert.c | 3 +-- src/log-httplog.c | 3 +-- 6 files changed, 8 insertions(+), 16 deletions(-) diff --git a/src/alert-debuglog.c b/src/alert-debuglog.c index 07ab6c4..997d4d9 100644 --- a/src/alert-debuglog.c +++ b/src/alert-debuglog.c @@ -194,8 +194,7 @@ TmEcode AlertDebuglogThreadInit(ThreadVars *t, void *initdata, void **data) if(initdata == NULL) { - SCLogError(SC_ERR_DEBUG_LOG_GENERIC_ERROR, "Error getting context for " - "DebugLog. \"initdata\" argument NULL"); + SCLogDebug("Error getting context for DebugLog. \"initdata\" argument NULL"); return TM_ECODE_FAILED; } /** Use the Ouptut Context (file pointer and mutex) */ @@ -240,8 +239,7 @@ LogFileCtx *AlertDebuglogInitCtx(char *config_file) if(file_ctx == NULL) { - SCLogError(SC_ERR_DEBUG_LOG_GENERIC_ERROR, "AlertDebuglogInitCtx: Couldn't " - "create new file_ctx"); + SCLogDebug("AlertDebuglogInitCtx: Couldn't create new file_ctx"); return NULL; } diff --git a/src/alert-fastlog.c b/src/alert-fastlog.c index c8d316a..c03b6d7 100644 --- a/src/alert-fastlog.c +++ b/src/alert-fastlog.c @@ -167,8 +167,7 @@ TmEcode AlertFastlogThreadInit(ThreadVars *t, void *initdata, void **data) memset(aft, 0, sizeof(AlertFastlogThread)); if(initdata == NULL) { - SCLogError(SC_ERR_FAST_LOG_GENERIC_ERROR, "Error getting context for " - "AlertFastLog. \"initdata\" argument NULL"); + SCLogDebug("Error getting context for AlertFastLog. \"initdata\" argument NULL"); return TM_ECODE_FAILED; } /** Use the Ouptut Context (file pointer and mutex) */ @@ -211,8 +210,7 @@ LogFileCtx *AlertFastlogInitCtx(char *config_file) if(file_ctx == NULL) { - SCLogError(SC_ERR_FAST_LOG_GENERIC_ERROR, "AlertFastlogInitCtx: Couldn't " - "create new file_ctx"); + SCLogDebug("AlertFastlogInitCtx: Couldn't create new file_ctx"); return NULL; } diff --git a/src/alert-unified-alert.c b/src/alert-unified-alert.c index 6466996..89811e7 100644 --- a/src/alert-unified-alert.c +++ b/src/alert-unified-alert.c @@ -208,8 +208,7 @@ TmEcode AlertUnifiedAlertThreadInit(ThreadVars *t, void *initdata, void **data) if(initdata == NULL) { - SCLogError(SC_ERR_UNIFIED_ALERT_GENERIC_ERROR, "Error getting context for " - "UnifiedAlert. \"initdata\" argument NULL"); + SCLogDebug("Error getting context for UnifiedAlert. \"initdata\" argument NULL"); return TM_ECODE_FAILED; } /** Use the Ouptut Context (file pointer and mutex) */ diff --git a/src/alert-unified-log.c b/src/alert-unified-log.c index fd3a0a5..c2462be 100644 --- a/src/alert-unified-log.c +++ b/src/alert-unified-log.c @@ -220,8 +220,7 @@ TmEcode AlertUnifiedLogThreadInit(ThreadVars *t, void *initdata, void **data) memset(aun, 0, sizeof(AlertUnifiedLogThread)); if(initdata == NULL) { - SCLogError(SC_ERR_UNIFIED_LOG_GENERIC_ERROR, "Error getting context for " - "UnifiedLog. \"initdata\" argument NULL"); + SCLogDebug("Error getting context for UnifiedLog. \"initdata\" argument NULL"); return TM_ECODE_FAILED; } /** Use the Ouptut Context (file pointer and mutex) */ diff --git a/src/alert-unified2-alert.c b/src/alert-unified2-alert.c index 957d19c..2f81187 100644 --- a/src/alert-unified2-alert.c +++ b/src/alert-unified2-alert.c @@ -491,8 +491,7 @@ TmEcode Unified2AlertThreadInit(ThreadVars *t, void *initdata, void **data) memset(aun, 0, sizeof(Unified2AlertThread)); if(initdata == NULL) { - SCLogError(SC_ERR_UNIFIED2_ALERT_GENERIC_ERROR, "Error getting context for " - "Unified2Alert. \"initdata\" argument NULL"); + SCLogDebug("Error getting context for Unified2Alert. \"initdata\" argument NULL"); return TM_ECODE_FAILED; } /** Use the Ouptut Context (file pointer and mutex) */ diff --git a/src/log-httplog.c b/src/log-httplog.c index 3c5d9f1..51ddeb5 100644 --- a/src/log-httplog.c +++ b/src/log-httplog.c @@ -184,8 +184,7 @@ TmEcode LogHttplogThreadInit(ThreadVars *t, void *initdata, void **data) if(initdata == NULL) { - SCLogError(SC_ERR_HTTP_LOG_GENERIC_ERROR, "Error getting context for " - "HTTPLog. \"initdata\" argument NULL"); + SCLogDebug("Error getting context for HTTPLog. \"initdata\" argument NULL"); return TM_ECODE_FAILED; } /** Use the Ouptut Context (file pointer and mutex) */ -- 1.5.5