[Sputnik-list] Sputnik on WSAPI, and almost zero-config

Enrico Tassi gareuselesinge at libero.it
Wed Jan 2 19:56:50 GMT+3 2008


On Wed, Jan 02, 2008 at 02:39:22PM -0800, Yuri Takhteyev wrote:
> > Just a note, I think you should add a require("logging." ..
> > SPUTNIK_CONFIG.LOGGER) somewhere before you assume that
> > logging[SPUTNIK_CONFIG.LOGGER] is non nil.
> 
> Not sure what you are referring to.  The logger is required in

Sorry, I saw line 40 of init.lua

  logging[initial_config.LOGGER](unpack(initial_config.LOGGER_PARAMS))

and I was pretty sure it was broken (sputnik was giving an error page
with a stack trace pointing to that line). Then I added

  require "logging.file"

in my bootstrap script (the 5 line wsapi adapter), and that fixed the 
problem. But now I see line 39

  require("logging."..initial_config.LOGGER)

that is exactly what I was suggesting, so the problem must have been
somewhere else. I'll try to reproduce the "bug" tomorror.

Sorry for the bogus bugreport.

cheers
-- 
Enrico Tassi



More information about the Sputnik-list mailing list