Commit Graph

6 Commits

Author SHA1 Message Date
a642a232f0 Fix .gitignore ignoring too much
* `Makefile.am` ignored by `Makefile*`
* `etc/renderd/*` ignored by `renderd`
2021-08-02 10:21:13 +02:00
a14924a999 Logging Improvements
* Using [`GLib Logging Framework`](https://developer.gnome.org/programming-guidelines/stable/logging.html.en) for logging
  * Created new `g_logger` function for logging
    * Outputs to `stdout`/`stderr` only when running in `foreground`
      * `stderr` for `message`, `warning`, `critical` & `error` levels
      * `stdout` for `debug` & `info` levels
        * Use `G_MESSAGES_DEBUG=all` environment to enable `debug` to print
    * Otherwise, output will be to `syslog` or `systemd journal` (when appropriate)
* Standardized usage of `{LOG_PRIORITY}: ` prefix in log messages
  * Only when using `syslog`, otherwise `GLib Logging` will take care of it
* Changed `fprintf(stderr`, `printf` & `perror` calls to `g_logger` calls
  * You might want to check them out closely to make sure I chose the right levels
  * No changes to `logging/output` were made to "`foreground`" programs (I.E. `render_*`)
* Changed `0`,`1` to `no_argument`,`required_argument` in `getopt_long`'s `long_options`
  * Fixed `renderd`'s `foreground` opt (should be `no_argument` [0] rather than `reguired_argument` [1])
* Basic test for `mod_tile` module
* ~~Extended `renderd` log priority onto Mapnik's logger~~
2021-07-28 14:46:50 +00:00
9b6124790a Added code format check to CI pipeline 2021-02-15 19:20:30 +01:00
8833bba9a2 Drop internal iniparser 2021-02-15 17:10:43 +01:00
cc4003c1b4 Don't ignore all .m4 files, only autogenerated ones 2013-05-16 22:47:34 -06:00
fef2c0ac6f add git ignores 2013-05-13 22:35:21 +03:00