13
0

Remove debug messages, cleanup output (2/2)

This commit is contained in:
Robin Gareus 2024-05-08 00:56:57 +02:00
parent 5d175786e8
commit 88df55f86d
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
3 changed files with 6 additions and 1 deletions

View File

@ -303,7 +303,9 @@ Butler::thread_work ()
break;
default:
error << string_compose (_("Butler read ahead failure on dstream %1"), tr->name ()) << endmsg;
#ifndef NDEBUG
std::cerr << string_compose (_("Butler read ahead failure on dstream %1"), tr->name ()) << std::endl;
#endif
break;
}
});
@ -396,7 +398,9 @@ Butler::flush_tracks_to_disk_normal (std::shared_ptr<RouteList const> rl, uint32
default:
errors++;
error << string_compose (_("Butler write-behind failure on dstream %1"), (*i)->name ()) << endmsg;
#ifndef NDEBUG
std::cerr << string_compose (_("Butler write-behind failure on dstream %1"), (*i)->name ()) << std::endl;
#endif
/* don't break - try to flush all streams in case they
are split across disks.
*/

View File

@ -419,7 +419,9 @@ DiskReader::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_samp
if (available == 0 && !chaninfo->initialized) {
disk_buf.silence (disk_samples_to_consume);
} else if (disk_samples_to_consume > available) {
#ifndef NDEBUG // not rt-safe to print here
cerr << "underrun for " << _name << " Available samples: " << available << " required: " << disk_samples_to_consume << endl;
#endif
DEBUG_TRACE (DEBUG::Butler, string_compose ("%1 underrun in %2, total space = %3 vs %4\n", DEBUG_THREAD_SELF, name (), available, disk_samples_to_consume));
Underrun ();
return;

View File

@ -4630,7 +4630,6 @@ Session::config_changed (std::string p, bool ours)
}
} else if (p == "default-time-domain") {
Temporal::TimeDomain td = config.get_default_time_domain ();
std::cerr << "Setting time domain\n";
set_time_domain (td);
Config->set_preferred_time_domain(td); /* sync the global default time domain to this newly chosen one */
}