Quoting Daniel Molina (dmol...@opennebula.org):
> On 29 November 2013 09:57, Stefan Kooman <ste...@bit.nl> wrote:
> 
> > Quoting Daniel Molina (dmol...@opennebula.org):
> > >
> > > Include it before the if:
> > >      logger.error(rackinput.class)
> > >      if (rackinput.class == Tempfile)
> >
> > I did just that, restarted apache and tried again. I can't spot the
> > value in the logs, can you? Passenger errors are logged in apache error log
> > (not vhost) log. I did check all logs but didn't find anything.
> 
> 
> It should be in /var/log/one/sunstone.log
> 
> You can also write the value to a file:
> File.open('/tmp/debug_sunstone", 'w') { |file| file.write(rackinput.class) }
I changed that to:
File.open('/tmp/debug_sunstone', 'w') { |file| file.write(rackinput.class) }

(vim syntax highlighting ftw!)

sunstone.log:

Fri Nov 29 10:08:00 2013 [E]: PhusionPassenger::Utils::TeeInput
Fri Nov 29 10:08:00 2013 [I]: 2001:7b8:3:1000:201:80ff:fe7c:2f35 - - 
[29/Nov/2013 10:08:00] "POST 
/upload?img=%7B%22image%22%3A%7B%22NAME%22%3A%22ttylinux%22%2C%22TYPE%22%3A%22CDROM%22%2C%22PERSISTENT%22%3A%22NO%22%7D%2C%22ds_id%22%3A%22101%22%7D&file=ttylinux-pc_i686-16.1.iso&qqfile=ttylinux-pc_i686-16.1.iso
 " 500 30 0.0059

cat /tmp/debug_sunstone
PhusionPassenger::Utils::TeeInput

Gr. Stefan





-- 
| BIT BV  http://www.bit.nl/        Kamer van Koophandel 09090351
| GPG: 0xD14839C6                   +31 318 648 688 / i...@bit.nl

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to