[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Maposmatic-dev] Logger set to 'maposmatic' in ocitysmap?
From: |
Maxime Petazzoni |
Subject: |
Re: [Maposmatic-dev] Logger set to 'maposmatic' in ocitysmap? |
Date: |
Tue, 2 Mar 2010 15:43:11 +0100 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
Hi,
* David MENTRE <address@hidden> [2010-03-02 15:29:00]:
> Could you explain this patch?
>
> http://git.savannah.gnu.org/cgit/maposmatic/ocitysmap.git/commit/?id=ea546db8ef3b03d8159c0e87e6fb66eb1e8f9496
>
> It seems quite strange to map. At least, your are fixing an artefact
> and not the issue underlying cause.
With the old daemon, both daemon and ocitysmap messages used the
"ocitysmap" logger name (for the daemon, defined in the config, and for
ocitysmap defined in street_index.py).
The new daemon uses "maposmatic" as the logger name. To make sure we
still get OCitySMap messages in the log, I had to change to "maposmatic"
in street_index.py as well. Ideally, street_index.py should look into
the environment for the LOG_TARGET and use it if present, otherwise
default to something sensible. But for now I went for the quick,
efficient fix.
Feel free to improve,
- Maxime
--
Maxime Petazzoni <http://www.bulix.org>
``One by one, the penguins took away my sanity.''
Linux kernel and software developer at MontaVista Software
signature.asc
Description: Digital signature