Resolved Tizen crash while printing FATAL errors.
authorvimala.v <vimala.v@samsung.com>
Mon, 31 Aug 2015 10:08:15 +0000 (15:38 +0530)
committerJon A. Cruz <jonc@osg.samsung.com>
Fri, 4 Sep 2015 01:36:10 +0000 (01:36 +0000)
Temp fix for https://jira.iotivity.org/browse/IOT-704.
This fix will be reverted back when Tizen binary issue is resolved.

Change-Id: I38cdff511c61ac74912a45763be9b7dc3b7e9e4e
Signed-off-by: vimala.v <vimala.v@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2319
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
resource/csdk/logger/src/logger.c

index f131517..3d8e4d9 100644 (file)
@@ -104,7 +104,12 @@ int OCGetTizenLogLevel(LogLevel level)
         case ERROR:
             return DLOG_ERROR;
         case FATAL:
         case ERROR:
             return DLOG_ERROR;
         case FATAL:
-            return DLOG_FATAL;
+            /*
+             * Temp fix to resolve DLOG_FATAL runtime crash in tizen binary.
+             * TODO: Revert back to DLOG_FATAL once logging issue is fixed in
+             * Tizen binary.
+             */
+            return DLOG_ERROR;
     }
     return DLOG_DEBUG;
 }
     }
     return DLOG_DEBUG;
 }