opencog / cogserver

Distributed AtomSpace Network Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CogServer does not error on module load failure

inflector opened this issue · comments

If you launch the CogServer and it cannot load a module because it has not been installed or is not present in the module search path, there is no error. It only prints some log entries at WARN level.

To duplicate, put a module in the MODULES section of a config file. Then remove the module from the install directory.

FWIW, I think the correct long-term strategy is to get rid of cogserver modules; its a pre-req for getting rid of the cogserver itself. I wouldn't waste time on this.

I also want to get rid of the config file, and the whole config mechanism.

Closing. At this time, I get this:

opencog> list
   Module Name           Library            Module Directory Path
   -----------           -------            ---------------------
BuiltinRequestsModule libbuiltinreqs.so  /usr/local/lib/opencog/modules
JsonShellModule       libjson-shell.so   /usr/local/lib/opencog/modules
SchemeShellModule     libscheme-shell.so /usr/local/lib/opencog/modules
SexprShellModule      libsexpr-shell.so  /usr/local/lib/opencog/modules
TopShellModule        libtop-shell.so    /usr/local/lib/opencog/modules
opencog> load "foo"
Unable to load module "foo". Check the server logs for details.
opencog>