const char *force_filestore = ConfNodeLookupChildValue(conf, "force-filestore");
if (force_filestore != NULL && ConfValIsTrue(force_filestore)) {
FileForceFilestoreEnable();
- SCLogInfo("forcing filestore of all files");
+ SCLogConfig("forcing filestore of all files");
}
const char *force_magic = ConfNodeLookupChildValue(conf, "force-magic");
if (force_magic != NULL && ConfValIsTrue(force_magic)) {
FileForceMagicEnable();
- SCLogInfo("forcing magic lookup for logged files");
+ SCLogConfig("forcing magic lookup for logged files");
}
const char *force_md5 = ConfNodeLookupChildValue(conf, "force-md5");
if (force_md5 != NULL && ConfValIsTrue(force_md5)) {
#ifdef HAVE_NSS
FileForceMd5Enable();
- SCLogInfo("forcing md5 calculation for logged files");
+ SCLogConfig("forcing md5 calculation for logged files");
#else
SCLogInfo("md5 calculation requires linking against libnss");
#endif
if (unlimited) {
/* we want no limit on coredump size */
if (lim.rlim_max == RLIM_INFINITY && lim.rlim_cur == RLIM_INFINITY) {
- SCLogInfo ("Core dump size is unlimited.");
+ SCLogConfig ("Core dump size is unlimited.");
return 1;
}
else {
new_lim.rlim_max = RLIM_INFINITY;
new_lim.rlim_cur = RLIM_INFINITY;
if (setrlimit (RLIMIT_CORE, &new_lim) == 0) {
- SCLogInfo ("Core dump size set to unlimited.");
+ SCLogConfig ("Core dump size set to unlimited.");
return 1;
}
if (errno == EPERM) {
struct rlimit actual_lim;
if (getrlimit (RLIMIT_CORE, &actual_lim) == 0) {
if (actual_lim.rlim_cur == RLIM_INFINITY) {
- SCLogInfo ("Core dump size set to unlimited.");
+ SCLogConfig ("Core dump size set to unlimited.");
}
#ifdef RLIM_SAVED_CUR
else if (actual_lim.rlim_cur == RLIM_SAVED_CUR) {
if ((!strcmp(subchild->name, itemname))) {
if (!strcmp(subchild->val, "default"))
break;
- SCLogInfo("Adding %s %s from config file",
+ SCLogConfig("Adding %s %s from config file",
itemname, subchild->val);
LiveRegisterDevice(subchild->val);
i++;
g_magic_ctx = magic_open(0);
if (g_magic_ctx == NULL) {
- SCLogError(SC_ERR_MAGIC_OPEN, "magic_open failed: %s", magic_error(g_magic_ctx));
+ SCLogError(SC_ERR_MAGIC_OPEN, "magic_open failed: %s",
+ magic_error(g_magic_ctx));
goto error;
}
if (filename != NULL) {
if (strlen(filename) == 0) {
- /* set filename to NULL on *nix systems so magic_load uses system default path (see man libmagic) */
- SCLogInfo("using system default magic-file");
+ /* set filename to NULL on *nix systems so magic_load uses system
+ * default path (see man libmagic) */
+ SCLogConfig("using system default magic-file");
filename = NULL;
}
else {
- SCLogInfo("using magic-file %s", filename);
+ SCLogConfig("using magic-file %s", filename);
if ( (fd = fopen(filename, "r")) == NULL) {
- SCLogWarning(SC_ERR_FOPEN, "Error opening file: \"%s\": %s", filename, strerror(errno));
+ SCLogWarning(SC_ERR_FOPEN, "Error opening file: \"%s\": %s",
+ filename, strerror(errno));
goto error;
}
fclose(fd);
}
if (magic_load(g_magic_ctx, filename) != 0) {
- SCLogError(SC_ERR_MAGIC_LOAD, "magic_load failed: %s", magic_error(g_magic_ctx));
+ SCLogError(SC_ERR_MAGIC_LOAD, "magic_load failed: %s",
+ magic_error(g_magic_ctx));
goto error;
}
{
SCMutexLock(&g_scratch_proto_mutex);
if (g_scratch_proto) {
- SCLogInfo("Cleaning up Hyperscan global scratch");
+ SCLogPerf("Cleaning up Hyperscan global scratch");
hs_free_scratch(g_scratch_proto);
g_scratch_proto = NULL;
}
SCMutexLock(&g_db_table_mutex);
if (g_db_table != NULL) {
- SCLogInfo("Clearing Hyperscan database cache");
+ SCLogPerf("Clearing Hyperscan database cache");
HashTableFree(g_db_table);
g_db_table = NULL;
}