Skip to content

Commit

Permalink
Logging is back
Browse files Browse the repository at this point in the history
  • Loading branch information
dyumin committed Sep 28, 2019
1 parent 25314bb commit 48a5696
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions tdutils/td/utils/logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,23 +176,23 @@ class DefaultLog : public LogInterface {
break;
}
#elif TD_TIZEN
// switch (log_level) {
// case VERBOSITY_NAME(FATAL):
// dlog_print(DLOG_ERROR, DLOG_TAG, slice.c_str());
// break;
// case VERBOSITY_NAME(ERROR):
// dlog_print(DLOG_ERROR, DLOG_TAG, slice.c_str());
// break;
// case VERBOSITY_NAME(WARNING):
// dlog_print(DLOG_WARN, DLOG_TAG, slice.c_str());
// break;
// case VERBOSITY_NAME(INFO):
// dlog_print(DLOG_INFO, DLOG_TAG, slice.c_str());
// break;
// default:
// dlog_print(DLOG_DEBUG, DLOG_TAG, slice.c_str());
// break;
// }
switch (log_level) {
case VERBOSITY_NAME(FATAL):
dlog_print(DLOG_ERROR, DLOG_TAG, slice.c_str());
break;
case VERBOSITY_NAME(ERROR):
dlog_print(DLOG_ERROR, DLOG_TAG, slice.c_str());
break;
case VERBOSITY_NAME(WARNING):
dlog_print(DLOG_WARN, DLOG_TAG, slice.c_str());
break;
case VERBOSITY_NAME(INFO):
dlog_print(DLOG_INFO, DLOG_TAG, slice.c_str());
break;
default:
dlog_print(DLOG_DEBUG, DLOG_TAG, slice.c_str());
break;
}
#elif TD_EMSCRIPTEN
switch (log_level) {
case VERBOSITY_NAME(FATAL):
Expand Down

0 comments on commit 48a5696

Please sign in to comment.