summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-02-06 13:56:32 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2012-02-06 13:56:32 +0100
commit6ed8f41db38a4ad13e032e3c7e2b0a1aa2ab822d (patch)
treedabed04882ce2823d29889f36f962118915fbad2 /runtime
parent3a1c33cea97ef99842bb656d9bf395baa3d3bca0 (diff)
downloadrsyslog-6ed8f41db38a4ad13e032e3c7e2b0a1aa2ab822d.tar.gz
rsyslog-6ed8f41db38a4ad13e032e3c7e2b0a1aa2ab822d.tar.xz
rsyslog-6ed8f41db38a4ad13e032e3c7e2b0a1aa2ab822d.zip
dns chache: added some more error instrumentation
Diffstat (limited to 'runtime')
-rw-r--r--runtime/dnscache.c29
-rw-r--r--runtime/dnscache.h30
2 files changed, 28 insertions, 31 deletions
diff --git a/runtime/dnscache.c b/runtime/dnscache.c
index 6cea43dc..549bcd93 100644
--- a/runtime/dnscache.c
+++ b/runtime/dnscache.c
@@ -11,21 +11,19 @@
*
* This file is part of the rsyslog runtime library.
*
- * The rsyslog runtime library is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * The rsyslog runtime library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>.
- *
- * A copy of the GPL can be found in the file "COPYING" in this distribution.
- * A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * -or-
+ * see COPYING.ASL20 in the source distribution
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
*/
#include "config.h"
@@ -347,6 +345,7 @@ dbgprintf("XXXX: hostn '%s', ip '%s'\n", etry->pszHostFQDN, etry->ip);
finalize_it:
pthread_rwlock_unlock(&dnsCache.rwlock);
if(iRet != RS_RET_OK) {
+ DBGPRINTF("dnscacheLookup failed with iRet %d\n", iRet);
strcpy((char*) pszHostFQDN, "???");
strcpy((char*) ip, "???");
}
diff --git a/runtime/dnscache.h b/runtime/dnscache.h
index e4667c8d..69f038ee 100644
--- a/runtime/dnscache.h
+++ b/runtime/dnscache.h
@@ -1,24 +1,22 @@
/* Definitions for dnscache module.
*
- * Copyright 2008-2012 Adiscon GmbH.
+ * Copyright 2011-2012 Adiscon GmbH.
*
* This file is part of the rsyslog runtime library.
*
- * The rsyslog runtime library is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * The rsyslog runtime library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>.
- *
- * A copy of the GPL can be found in the file "COPYING" in this distribution.
- * A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * -or-
+ * see COPYING.ASL20 in the source distribution
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
*/
#ifndef INCLUDED_DNSCACHE_H