Convert further debug(0) calls to FLOG

Follow on from ea9d1ad82faf4c.
This commit is contained in:
David Adam 2019-05-28 21:06:42 +08:00
parent 29c627d020
commit ba4f4bfce2
2 changed files with 3 additions and 2 deletions

View File

@ -1189,7 +1189,7 @@ void env_stack_t::set_termsize() {
void env_stack_t::set_pwd_from_getcwd() {
wcstring cwd = wgetcwd();
if (cwd.empty()) {
debug(0,
FLOG(error,
_(L"Could not determine current working directory. Is your locale set correctly?"));
return;
}

View File

@ -31,6 +31,7 @@
#include "common.h"
#include "env.h"
#include "fallback.h" // IWYU pragma: keep
#include "flog.h"
#include "global_safety.h"
#include "history.h"
#include "io.h"
@ -1860,7 +1861,7 @@ wcstring history_session_id(const environment_t &vars) {
} else if (valid_var_name(session_id)) {
result = session_id;
} else {
debug(0,
FLOGF(error,
_(L"History session ID '%ls' is not a valid variable name. "
L"Falling back to `%ls`."),
session_id.c_str(), result.c_str());