openstreetmap / openstreetmap/mod_tile

mod tile ignores apache Log settings.

Open
#155 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
318
Forks
199
PR merge metrics
No merged PRs in 30d

Description

The apache error log is spammed with many many entries of the type

debug: init_storage_backend: initialising file storage backend at: /var/lib/tirex/tiles

Now locking at the code I see that log_message() in store.c function gets a loglevel passed, but it is never actually compared against the LogLevel setting of Apache, so mod tile always runs in LogLevel debug.

Please honor the Apache LogLevel setting as it should be.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in store.c at log_message(), where the issue says the passed log level is not compared with Apache's LogLevel setting. Trace how mod_tile receives Apache logging configuration and verify that debug entries are suppressed when the configured level excludes them.

Written by the indexing model from the issue text.

Assessment

Tech stack
apache, cpp
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.