[OSM-dev] mod_tile/renderd logging

Jon Burgess jburgess777 at googlemail.com
Tue Jan 12 23:00:25 GMT 2010


On Tue, 2010-01-12 at 14:10 +0000, Ævar Arnfjörð Bjarmason wrote:
> On Tue, Jan 12, 2010 at 11:08, Jaak Laineste <jaak.laineste at gmail.com> wrote:
> > Hello,
> >  Is there a way to save renderd debug log to a file? I can see the
> > debug log when I start renderd with -f option, but I'd like to run it
> > as normal service, silently, but have debug log in e.g.
> > /var/log/renderd.log
> 
> You can run it under inet.d and have it capture its output iirc.

If you have an intelligent syslog daemon (like rsylog or syslog-ng) then
that should let you direct the renderd output to another log file.

> >  I was getting occasional Segmentation Faults in renderd (when I use
> >>2 threads), this may be useful for troubleshooting.
> 
> It usually doesn't help at all to capture program output when
> something is segfaulting. Compile it with the -ggdb3 flag and run it
> under gdb instead.

As Avar says, the backtrace from GDB is generally a lot more useful than
the log output.


> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/dev






More information about the dev mailing list