Minor fixes.

GitOrigin-RevId: f0ba3402adf4a26d8220d9b5545e9ea18f094e65
This commit is contained in:
levlam 2019-04-22 03:46:51 +03:00
parent 6acdaf056f
commit c62ff7039e
11 changed files with 15 additions and 12 deletions

View File

@ -42,7 +42,7 @@ function(add_cxx_compiler_flag FLAG)
else()
unset(CMAKE_REQUIRED_FLAGS)
endif()
if(${MANGLED_FLAG})
if (MANGLED_FLAG)
set(VARIANT ${ARGV1})
if (ARGV1)
string(TOUPPER "_${VARIANT}" VARIANT)

View File

@ -13,7 +13,6 @@
#include "td/telegram/Td.h"
#include "td/telegram/VideosManager.h"
#include "td/telegram/VideoNotesManager.h"
#include "td/telegram/VoiceNotesManager.h"
namespace td {

View File

@ -130,8 +130,8 @@ Result<int> Logging::get_tag_verbosity_level(Slice tag) {
return *it->second;
}
void Logging::add_message(int verbosity_level, Slice message) {
int VERBOSITY_NAME(client) = clamp(verbosity_level, 0, VERBOSITY_NAME(NEVER));
void Logging::add_message(int log_verbosity_level, Slice message) {
int VERBOSITY_NAME(client) = clamp(log_verbosity_level, 0, VERBOSITY_NAME(NEVER));
VLOG(client) << message;
}

View File

@ -30,7 +30,7 @@ class Logging {
static Result<int> get_tag_verbosity_level(Slice tag);
static void add_message(int verbosity_level, Slice message);
static void add_message(int log_verbosity_level, Slice message);
};
} // namespace td

View File

@ -45,6 +45,7 @@
#include "td/telegram/TdDb.h"
#include "td/telegram/TopDialogManager.h"
#include "td/telegram/UpdatesManager.h"
#include "td/telegram/Version.h"
#include "td/telegram/WebPageId.h"
#include "td/telegram/WebPagesManager.h"

View File

@ -49,6 +49,7 @@
#include "td/utils/misc.h"
#include "td/utils/Slice.h"
#include "td/utils/Time.h"
#include "td/utils/tl_helpers.h"
#include "td/utils/tl_parsers.h"
#include "td/utils/utf8.h"

View File

@ -21,6 +21,8 @@
#include "td/utils/misc.h"
#include "td/utils/Slice.h"
#include <tuple>
namespace td {
class NotificationTypeMessage : public NotificationType {

View File

@ -15,8 +15,6 @@
#include "td/telegram/MessagesManager.h"
#include "td/telegram/TdDb.h"
#include "td/telegram/td_api.h"
#include "td/utils/logging.h"
#include "td/utils/misc.h"
#include "td/utils/port/Clocks.h"

View File

@ -12,14 +12,13 @@
#include "td/telegram/files/FileGcWorker.h"
#include "td/telegram/files/FileStats.h"
#include "td/telegram/files/FileStatsWorker.h"
#include "td/telegram/td_api.h"
#include "td/utils/common.h"
#include "td/utils/Slice.h"
#include "td/utils/Status.h"
namespace td {
namespace td_api {
class databaseStatistics;
} // namespace td_api
struct DatabaseStats {
string debug;

View File

@ -26,9 +26,11 @@
#include "td/db/SqliteKeyValueSafe.h"
#include "td/utils/common.h"
#include "td/utils/format.h"
#include "td/utils/logging.h"
#include "td/utils/port/path.h"
#include "td/utils/Random.h"
#include "td/utils/StringBuilder.h"
namespace td {

View File

@ -12,6 +12,7 @@
#include "td/utils/common.h"
#include "td/utils/format.h"
#include "td/utils/logging.h"
#include "td/utils/port/IPAddress.h"
#include "td/utils/Slice.h"
#include "td/utils/StringBuilder.h"