From 8090f2db8d6c91708d7ea2df62135e9ed7c7eed9 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 9 Mar 2006 14:12:24 +0000 Subject: [PATCH] Issue warnings for modules where loading fails --- src/modules.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/modules.cpp b/src/modules.cpp index 6c2a91b..83ba144 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -1,4 +1,4 @@ -/* $Id: modules.cpp,v 1.4 2005-06-25 15:58:33 adam Exp $ +/* $Id: modules.cpp,v 1.5 2006-03-09 14:12:24 adam Exp $ Copyright (c) 1998-2005, Index Data. This file is part of the yaz-proxy. @@ -169,18 +169,24 @@ int Yaz_ProxyModules::add_module(const char *fname) m_list = m; m_no_open++; - yaz_log(YLOG_LOG, "Loaded module no_open=%d", m_no_open); + yaz_log(YLOG_LOG, "Loaded module %s OK", fname); return 0; } else { + yaz_log(YLOG_WARN, "Failed loading module %s - missing symbols", + fname); return -1; dlclose(dl_handle); } } else + { + yaz_log(YLOG_WARN, "Failed loading module %s", fname); return -1; + } #else + yaz_log(YLOG_WARN, "Failed loading module %s - no module support", fname); return -1; #endif } -- 1.7.10.4