[dovecot/core] e7609d: lib: Rename handler_config variable to failure_han...

GitHub noreply at github.com
Mon Sep 3 12:30:08 EEST 2018


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: e7609d5de185931fb5d0c4caefb5a084227b5eba
      https://github.com/dovecot/core/commit/e7609d5de185931fb5d0c4caefb5a084227b5eba
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-09-03 (Mon, 03 Sep 2018)

  Changed paths:
    M src/lib/failures.c

  Log Message:
  -----------
  lib: Rename handler_config variable to failure_handler

It's a global variable, so it needs to have a proper prefix.


  Commit: f83a64ee5c668378779ce05c4d0236e1dc40f525
      https://github.com/dovecot/core/commit/f83a64ee5c668378779ce05c4d0236e1dc40f525
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-09-03 (Mon, 03 Sep 2018)

  Changed paths:
    M src/lib/failures.c

  Log Message:
  -----------
  lib: Make failure handler variables static


  Commit: a9e57941fdcac133756bbfec56971730d54cbb54
      https://github.com/dovecot/core/commit/a9e57941fdcac133756bbfec56971730d54cbb54
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-09-03 (Mon, 03 Sep 2018)

  Changed paths:
    M src/lib/Makefile.am
    A src/lib/failures-private.h
    M src/lib/failures.c

  Log Message:
  -----------
  lib: Move failure handler structs and typedefs to failures-private.h

Also change the function typedefs to be non-pointers, like they usually are
in Dovecot code.


  Commit: dbf74d99542ce57859215e6d93a506a78a99b222
      https://github.com/dovecot/core/commit/dbf74d99542ce57859215e6d93a506a78a99b222
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-09-03 (Mon, 03 Sep 2018)

  Changed paths:
    M src/lib/failures.c

  Log Message:
  -----------
  lib: failures - Move adding LF from default_format() to default_write()

This makes it similar to internal_format/write()


  Commit: f35ed2a01d56cd0cb2390240cd4e97de318335c5
      https://github.com/dovecot/core/commit/f35ed2a01d56cd0cb2390240cd4e97de318335c5
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-09-03 (Mon, 03 Sep 2018)

  Changed paths:
    M src/lib/Makefile.am
    A src/lib/test-event-log.c
    M src/lib/test-lib.inc

  Log Message:
  -----------
  lib: Add unit test for event log prefix handling

Some of the tests are commented out until they're fixed in a following
commit.


  Commit: 9d0ce3784e5f050b494a9b45be83331bbf6fc140
      https://github.com/dovecot/core/commit/9d0ce3784e5f050b494a9b45be83331bbf6fc140
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-09-03 (Mon, 03 Sep 2018)

  Changed paths:
    M src/lib/failures.c

  Log Message:
  -----------
  lib: failures - Use common log_prefix_add() for default and syslog formatters


  Commit: d95e05bbf679a727874e5173e6261b098884eb91
      https://github.com/dovecot/core/commit/d95e05bbf679a727874e5173e6261b098884eb91
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-09-03 (Mon, 03 Sep 2018)

  Changed paths:
    M src/log/log-connection.c

  Log Message:
  -----------
  log: Avoid unnecessary global log prefix changes

If the context specifies a log prefix, the global prefix isn't going to be
used.


  Commit: 4e573cb8f6289b5868f6e0f537aa0ab8d0a33e46
      https://github.com/dovecot/core/commit/4e573cb8f6289b5868f6e0f537aa0ab8d0a33e46
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-09-03 (Mon, 03 Sep 2018)

  Changed paths:
    M src/log/log-connection.c

  Log Message:
  -----------
  log: Move data stack frame allocation to parent function

This simplifies the next commit, which requires data stack nearly always
when logging. The data stack frames are cheap enough that we don't really
need to optimize for avoiding the cases when they're not needed.


  Commit: fcd9bcd9fd74a574fab9b5c7add537b703caaddd
      https://github.com/dovecot/core/commit/fcd9bcd9fd74a574fab9b5c7add537b703caaddd
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-09-03 (Mon, 03 Sep 2018)

  Changed paths:
    M src/lib/failures.c
    M src/lib/failures.h
    M src/log/log-connection.c

  Log Message:
  -----------
  lib, log: Add log prefix length to internal logging protocol

This way log process knows which part of the text is the log prefix, and
which part is the logged text.


  Commit: 36d7bd34c8a11e563ca8874dbca3538c0ade2b01
      https://github.com/dovecot/core/commit/36d7bd34c8a11e563ca8874dbca3538c0ade2b01
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-09-03 (Mon, 03 Sep 2018)

  Changed paths:
    M src/lib/failures.c
    M src/lib/failures.h

  Log Message:
  -----------
  lib: Add failure_context.log_prefix_type_pos

If non-zero, this specifies where the log type (e.g. "Info: ") is written
within the log prefix. By default it's appended.


  Commit: bd63f512d1e88db715f4d480efad667d6830bff2
      https://github.com/dovecot/core/commit/bd63f512d1e88db715f4d480efad667d6830bff2
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-09-03 (Mon, 03 Sep 2018)

  Changed paths:
    M src/lib/event-log.c
    M src/lib/lib-event.h
    M src/lib/test-event-log.c

  Log Message:
  -----------
  lib: Move log type to be written before appended log prefix

This changes the logging format back to how it used to be before the event
logging changes.


Compare: https://github.com/dovecot/core/compare/7aea09b4e09b...bd63f512d1e8
      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the dovecot-cvs mailing list