Partition, ...: use libfmt for logging
This commit is contained in:
@@ -20,6 +20,8 @@
|
||||
#include "Control.hxx"
|
||||
#include "Filtered.hxx"
|
||||
#include "Client.hxx"
|
||||
#include "Domain.hxx"
|
||||
#include "lib/fmt/ExceptionFormatter.hxx"
|
||||
#include "mixer/MixerControl.hxx"
|
||||
#include "config/Block.hxx"
|
||||
#include "Log.hxx"
|
||||
@@ -286,9 +288,9 @@ AudioOutputControl::Open(std::unique_lock<Mutex> &lock,
|
||||
try {
|
||||
mixer_open(output->mixer);
|
||||
} catch (...) {
|
||||
FormatError(std::current_exception(),
|
||||
"Failed to open mixer for '%s'",
|
||||
GetName());
|
||||
FmtError(output_domain,
|
||||
"Failed to open mixer for '{}': {}",
|
||||
GetName(), std::current_exception());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user