Commit 75e34f6d authored by Adrien Béraud's avatar Adrien Béraud
Browse files

log cleanup

Change-Id: Ieb8d1c6d366f39fbbb83f405af659e04c884caa2
parent 78515e37
......@@ -659,13 +659,13 @@ DataTransferFacade::Impl::onConnectionRequestReply(const DRing::DataTransferId&
DataTransferFacade::DataTransferFacade() : pimpl_ {std::make_unique<Impl>()}
{
JAMI_WARN("[XFER] facade created, pimpl @%p", pimpl_.get());
// JAMI_DBG("[XFER] facade created, pimpl @%p", pimpl_.get());
}
DataTransferFacade::~DataTransferFacade()
{
JAMI_WARN("[XFER] facade destroy, pimpl @%p", pimpl_.get());
};
// JAMI_DBG("[XFER] facade destroy, pimpl @%p", pimpl_.get());
}
std::vector<DRing::DataTransferId>
DataTransferFacade::list() const noexcept
......
......@@ -143,8 +143,8 @@ check_rename(const std::string& old_dir, const std::string& new_dir)
if (old_dir == new_dir or not fileutils::isDirectory(old_dir))
return;
JAMI_WARN() << "Migrating" << old_dir << " to " << new_dir;
if (not fileutils::isDirectory(new_dir)) {
JAMI_WARN() << "Migrating " << old_dir << " to " << new_dir;
std::rename(old_dir.c_str(), new_dir.c_str());
} else {
for (const auto &file : fileutils::readDirectory(old_dir)) {
......@@ -153,6 +153,7 @@ check_rename(const std::string& old_dir, const std::string& new_dir)
if (fileutils::isDirectory(old_dest) and fileutils::isDirectory(new_dest)) {
check_rename(old_dest, new_dest);
} else {
JAMI_WARN() << "Migrating " << old_dest << " to " << new_dest;
std::rename(old_dest.c_str(), new_dest.c_str());
}
}
......@@ -660,7 +661,7 @@ Manager::instance()
// This will give a warning that can be ignored the first time instance()
// is called...subsequent warnings are more serious
if (not Manager::initialized)
JAMI_WARN("Not initialized");
JAMI_DBG("Not initialized");
return instance;
}
......
......@@ -193,11 +193,9 @@ start:
static void
notify()
{
if (!Manager::initialized) {
JAMI_WARN("Manager not initialized yet");
return;
if (Manager::initialized) {
emitSignal<DRing::VideoSignal::DeviceEvent>();
}
emitSignal<DRing::VideoSignal::DeviceEvent>();
}
void
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment