mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-05 22:11:22 +00:00
lottie: move logging system initialization to player.
disable loggin for tizen till issue resolved. Change-Id: I24664f43128c6edfacd09f7296d63cad636c0c81
This commit is contained in:
parent
a5528fc85d
commit
46d1fec227
@ -271,3 +271,15 @@ bool LOTPlayer::renderSync(float pos, LOTBuffer &buffer)
|
|||||||
LOTNode::~LOTNode() {}
|
LOTNode::~LOTNode() {}
|
||||||
|
|
||||||
LOTNode::LOTNode() {}
|
LOTNode::LOTNode() {}
|
||||||
|
|
||||||
|
void initLogging()
|
||||||
|
{
|
||||||
|
#if defined(__ARM_NEON__)
|
||||||
|
set_log_level(LogLevel::OFF);
|
||||||
|
#else
|
||||||
|
initialize(GuaranteedLogger(), "/tmp/", "lotti-player", 1);
|
||||||
|
set_log_level(LogLevel::INFO);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
V_CONSTRUCTOR_FUNCTION(initLogging)
|
||||||
|
|||||||
@ -724,22 +724,3 @@ bool is_logged(LogLevel level)
|
|||||||
return static_cast<unsigned int>(level) >=
|
return static_cast<unsigned int>(level) >=
|
||||||
loglevel.load(std::memory_order_relaxed);
|
loglevel.load(std::memory_order_relaxed);
|
||||||
}
|
}
|
||||||
|
|
||||||
void initDebug()
|
|
||||||
{
|
|
||||||
initialize(GuaranteedLogger(), "/tmp/", "lotti-player", 1);
|
|
||||||
set_log_level(LogLevel::INFO);
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifndef DEBUG_CONSTRUCTOR_FUNCTION
|
|
||||||
#define DEBUG_CONSTRUCTOR_FUNCTION0(AFUNC) \
|
|
||||||
namespace { \
|
|
||||||
static const struct AFUNC##_ctor_class_ { \
|
|
||||||
inline AFUNC##_ctor_class_() { AFUNC(); } \
|
|
||||||
} AFUNC##_ctor_instance_; \
|
|
||||||
}
|
|
||||||
|
|
||||||
#define DEBUG_CONSTRUCTOR_FUNCTION(AFUNC) DEBUG_CONSTRUCTOR_FUNCTION0(AFUNC)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
DEBUG_CONSTRUCTOR_FUNCTION(initDebug)
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user