[Tizen] Enable Trace Filter with 0/1 54/284254/1 accepted/tizen/7.0/unified/20221117.014400
authorHeeyong Song <heeyong.song@samsung.com>
Mon, 14 Nov 2022 06:14:29 +0000 (15:14 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Mon, 14 Nov 2022 08:35:04 +0000 (17:35 +0900)
Change-Id: Ibe5ac416fff314fbb4a54b648df60763e5233533

dali/integration-api/trace.cpp
dali/internal/event/events/key-event-processor.cpp

index ac923a8..704e66f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -67,11 +67,11 @@ Filter* Filter::New(bool trace, const char* environmentVariableName)
     sscanf(environmentVariableValue, "%c", &envTraceString);
 
     // Just use 'f' and 't' as it's faster than doing full string comparisons
-    if(envTraceString == 't')
+    if(envTraceString == '1' || envTraceString == 't')
     {
       trace = true;
     }
-    else if(envTraceString == 'f')
+    else if(envTraceString == '0' || envTraceString == 'f')
     {
       trace = false;
     }
index 4180fc6..4b6ef61 100644 (file)
@@ -50,7 +50,7 @@ void KeyEventProcessor::ProcessKeyEvent(const Integration::KeyEvent& event)
   std::ostringstream stream;
   if(gTraceFilter->IsTraceEnabled())
   {
-    stream << "DALI_PROCESS_KEY_EVENT [" << event.keyName << ", " << event.state << "]\n";
+    stream << "DALI_PROCESS_KEY_EVENT [" << event.keyName << ", " << event.state << "]";
     DALI_TRACE_BEGIN(gTraceFilter, stream.str().c_str());
   }
 #endif