migrate to fmt-based logging in some more places

and improve logging.
This commit is contained in:
Dirk-Jan C. Binnema
2023-07-07 10:47:03 +03:00
parent 4171fe14c3
commit 31f0c40893
9 changed files with 51 additions and 54 deletions

View File

@ -143,10 +143,8 @@ Mu::run_script(const std::string& path,
#else
std::string mainargs;
for (auto&& arg: args)
mainargs += format("%s\"%s\"",
mainargs.empty() ? "" : " ", arg.c_str());
auto expr = format("(main '(\"%s\" %s))",
get_name(path).c_str(), mainargs.c_str());
mainargs += mu_format("{}\"{}\"", mainargs.empty() ? "" : " ", arg);
auto expr = mu_format("(main '(\"{}\" {}))", get_name(path), mainargs);
std::vector<const char*> argv = {
GUILE_BINARY,