[ovs-git] [openvswitch/ovs] 4407aa: log: Require log entries to be JSON objects.

GitHub noreply at github.com
Sun Dec 24 19:55:44 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 4407aa48cdac79db6974181dad53f92e7f534ec8
      https://github.com/openvswitch/ovs/commit/4407aa48cdac79db6974181dad53f92e7f534ec8
  Author: Ben Pfaff <blp at ovn.org>
  Date:   2017-12-24 (Sun, 24 Dec 2017)

  Changed paths:
    M ovsdb/log.c
    M tests/ovsdb-log.at

  Log Message:
  -----------
  log: Require log entries to be JSON objects.

The current and upcoming users of the OVSDB logging module only use
JSON objects as records.  This commit simplifies the users slightly
by allowing them to always assume that the records are JSON objects.

Unfortunately this resulted in a large number of updates to tests,
which didn't always use JSON objects.

Signed-off-by: Ben Pfaff <blp at ovn.org>
Acked-by: Justin Pettit <jpettit at ovn.org>


  Commit: 226600d917ac1371bfc264e1561d9de7657a0f17
      https://github.com/openvswitch/ovs/commit/226600d917ac1371bfc264e1561d9de7657a0f17
  Author: Ben Pfaff <blp at ovn.org>
  Date:   2017-12-24 (Sun, 24 Dec 2017)

  Changed paths:
    M ovsdb/log.c
    M ovsdb/log.h

  Log Message:
  -----------
  log: Make json parameter to ovsdb_log_write() const.

Signed-off-by: Ben Pfaff <blp at ovn.org>
Acked-by: Justin Pettit <jpettit at ovn.org>


  Commit: c7007aa7150b15b610ec0c8c737c2267788fa0ad
      https://github.com/openvswitch/ovs/commit/c7007aa7150b15b610ec0c8c737c2267788fa0ad
  Author: Ben Pfaff <blp at ovn.org>
  Date:   2017-12-24 (Sun, 24 Dec 2017)

  Changed paths:
    M ovsdb/log.c

  Log Message:
  -----------
  log: Log write errors.

This saves all the callers from logging them separately.

Signed-off-by: Ben Pfaff <blp at ovn.org>
Acked-by: Justin Pettit <jpettit at ovn.org>


  Commit: 1e0b7e94ecf35e06037b00099fa2f23e13954b99
      https://github.com/openvswitch/ovs/commit/1e0b7e94ecf35e06037b00099fa2f23e13954b99
  Author: Ben Pfaff <blp at ovn.org>
  Date:   2017-12-24 (Sun, 24 Dec 2017)

  Changed paths:
    M ovsdb/file.c
    M ovsdb/log.c
    M ovsdb/log.h
    M ovsdb/ovsdb-tool.c
    M tests/ovsdb-log.at
    M tests/test-ovsdb.c

  Log Message:
  -----------
  log: Add new open mode OVSDB_LOG_CREATE_EXCL.

Until now, OVSDB_LOG_CREATE implied EXCL, but this commit breaks them
apart.

Signed-off-by: Ben Pfaff <blp at ovn.org>
Acked-by: Justin Pettit <jpettit at ovn.org>


Compare: https://github.com/openvswitch/ovs/compare/19b276cb4423...1e0b7e94ecf3


More information about the git mailing list