Removed SPDLOG_NO_DATETIME option

This commit is contained in:
gabime
2019-11-04 17:43:30 +02:00
parent 18edb8bd63
commit 10116b7717
7 changed files with 2 additions and 46 deletions

View File

@@ -78,12 +78,7 @@ public:
protected:
void sink_it_(const details::log_msg &msg) override
{
#ifdef SPDLOG_NO_DATETIME
auto time = log_clock::now();
#else
auto time = msg.time;
#endif
bool should_rotate = time >= rotation_tp_;
if (should_rotate)
{