mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 04:16:10 +08:00
Convert further debug(0) calls to FLOG
Follow on from ea9d1ad82faf4c.
This commit is contained in:
parent
29c627d020
commit
ba4f4bfce2
@ -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;
|
||||
}
|
||||
|
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user