13
0

add debug-message to track down missing Sources

This commit is contained in:
Robin Gareus 2014-02-05 18:49:32 +01:00
parent 4818621a27
commit 7c69b0ab82

View File

@ -979,9 +979,19 @@ Session::state (bool full_state)
if (!fs->destructive()) {
if (fs->empty() && !fs->used()) {
#ifndef NDEBUG
cerr << "DEBUG: source '"
<< fs->name() << "' id: "
<< fs->id() << " is marked as empty and unused and is not saved.\n";
#endif
continue;
}
}
#ifndef NDEBUG
cerr << "DEBUG: saving source '"
<< fs->name() << "' id: "
<< fs->id() << ".\n";
#endif
child->add_child_nocopy (siter->second->get_state());
}