Bug 4560: Improve config system logging for debuggability 16/29216/2
authorTom Pantelis <tpanteli@brocade.com>
Tue, 3 Nov 2015 15:06:27 +0000 (10:06 -0500)
committerGerrit Code Review <gerrit@opendaylight.org>
Tue, 10 Nov 2015 12:24:19 +0000 (12:24 +0000)
commitedc7fa3aa93bf109acb36c6f2c69a19cf8e38af2
treee16010d2f2b184b85f0f058be01fd682876bfcd3
parent1509e98575938da3dbb4ce0ec5a89214bd725133
Bug 4560: Improve config system logging for debuggability

Manually cherry-picked from
https://git.opendaylight.org/gerrit/#/c/28985 as the files have moved in
master.

Also the code has changed slightly in master, specifically the
ConfigPusherImplTest no longer uses a Thread uncaught exception handler
for verification. However it does rely on exceptions thrown from the
ConfigPusherImpl so, to keep the same behavior, I added a
propagateExceptions flag to ConfigPusherImpl#process. The
ConfigPersisterActivator production code passes false so unchecked
exceptions aren't handled as uncaught exceptions.

Change-Id: Iabc22030abc22cf11a1476986ba3d3366021b4fb
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
opendaylight/config/config-persister-impl/src/main/java/org/opendaylight/controller/config/persist/impl/ConfigPusherImpl.java
opendaylight/config/config-persister-impl/src/main/java/org/opendaylight/controller/config/persist/impl/osgi/ConfigPersisterActivator.java
opendaylight/config/config-persister-impl/src/test/java/org/opendaylight/controller/config/persist/impl/ConfigPusherImplTest.java