On Oct 7, 3:24 pm, Tricheco <[EMAIL PROTECTED]> wrote:
> On Mac and Linux:
>
> $ merb-gen app test
> $ cd test
> $ rake --tasks
> (in /Users/user/Development/Ruby/Merb/0.9.8/test)
> Logging to #<IO:0x2f7d8>
> rake aborted!
> can't convert IO into String
> /Users/user/Development/Ruby/Merb/0.9.8/test/rakefile:12
> (See full trace by running task with --trace)

I've just done the same thing a couple minutes ago,
tracking into source code to find out what's wrong with it.

I notice that in merb-core.rb: 497

    def load_config(options = {})
      Merb::Config.setup({ :log_file => STDOUT, :log_level
=> :warn, :log_auto_flush => true }.merge(options))
      Merb::BootLoader::Logger.run
    end

Here Merb make default :log_file to be STDOUT,
which is an IO instance, and in merb-core/bootloader.rb: 294

    Merb::Config[:log_stream] = File.open(Merb::Config[:log_file], "w
+") if Merb::Config[:log_file]

It suppose :log_file should refer a String, not an IO.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to