resource: Disable logging if not enabled
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Mon, 13 Mar 2017 08:39:46 +0000 (09:39 +0100)
committerDan Mihai <Daniel.Mihai@microsoft.com>
Mon, 27 Mar 2017 21:38:01 +0000 (21:38 +0000)
commitbe77876f05d7e18bc5838b5b8ef13d33d951e16e
tree3b09ea8498ab5bbe2349bd891e7ea3f646d3ce84
parent293024229f8aa721c3ddff5469c30849d28cfbfa
resource: Disable logging if not enabled

Curently without logging (LOGGING=False or undefined)
some trace messages are appearing:

  0:
  In entity handler wrapper:

Now with this change those log lines are sent to null stream.

Change-Id: I26892c7ca6efca025c24e762305d59589ca26543
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17869
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
resource/oc_logger/cpp/oc_ostream_logger.cpp
resource/src/OCApi.cpp