mirror of
https://github.com/labwc/labwc.git
synced 2026-04-12 08:21:13 -04:00
session: Remove log message for missing environment.d
Not having an environment.d directory is a normal case, so no log message is needed. Additionally, rename no_dir_cleanup to env_dir_cleanup. I was confusing log messages with feature discovery.
This commit is contained in:
parent
55066b995d
commit
17114152cc
1 changed files with 3 additions and 7 deletions
|
|
@ -118,18 +118,14 @@ read_environment_dir(const char *path_prefix)
|
|||
DIR *envdir = opendir(path);
|
||||
|
||||
if (!envdir) {
|
||||
if (errno == ENOENT) {
|
||||
wlr_log(WLR_INFO,
|
||||
"no %s.d directory found",
|
||||
path_prefix);
|
||||
} else {
|
||||
if (errno != ENOENT) {
|
||||
const char *err_msg = strerror(errno);
|
||||
wlr_log(WLR_INFO,
|
||||
"failed to read environment directory: %s",
|
||||
err_msg ? err_msg : "reason unknown");
|
||||
}
|
||||
|
||||
goto no_dir_cleanup;
|
||||
goto env_dir_cleanup;
|
||||
}
|
||||
|
||||
struct dirent *dirent;
|
||||
|
|
@ -148,7 +144,7 @@ read_environment_dir(const char *path_prefix)
|
|||
|
||||
closedir(envdir);
|
||||
|
||||
no_dir_cleanup:
|
||||
env_dir_cleanup:
|
||||
free(path);
|
||||
return success;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue