projects
/
platform
/
upstream
/
iotivity.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
resource: Disable logging if not enabled
[platform/upstream/iotivity.git]
/
resource
/
src
/
OCApi.cpp
diff --git
a/resource/src/OCApi.cpp
b/resource/src/OCApi.cpp
index
529573f
..
bc5c969
100644
(file)
--- a/
resource/src/OCApi.cpp
+++ b/
resource/src/OCApi.cpp
@@
-28,7
+28,12
@@
namespace OC
{
std::ostream& oclog()
{
+#ifdef TB_LOG
return std::cout;
+#else
+ static std::ostream nullstream(0);
+ return nullstream;
+#endif
}
}
#endif