[Tile-serving] [openstreetmap/mod_tile] mod tile ignores apache Log settings. (#155)
Jakub Juraszek
notifications at github.com
Tue Aug 14 06:33:16 UTC 2018
This is really annoying indeed - function called to log does not give a ... care for what is the user setting
Please fix ? :)
```
src/store.c
void log_message(int log_lvl, const char *format, ...) {
va_list ap;
char *msg = malloc(1000*sizeof(char));
va_start(ap, format);
if (msg) {
vsnprintf(msg, 1000, format, ap);
switch (log_lvl) {
case STORE_LOGLVL_DEBUG:
fprintf(stderr, "debug: %s\n", msg);
break;
case STORE_LOGLVL_INFO:
fprintf(stderr, "info: %s\n", msg);
break;
case STORE_LOGLVL_WARNING:
fprintf(stderr, "WARNING: %s\n", msg);
break;
case STORE_LOGLVL_ERR:
fprintf(stderr, "ERROR: %s\n", msg);
break;
}
free(msg);
fflush(stderr);
}
va_end(ap);
}
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/mod_tile/issues/155#issuecomment-412769034
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20180813/320d23a9/attachment-0001.html>
More information about the Tile-serving
mailing list