Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hpc
gekkofs
Commits
b4564080
Verified
Commit
b4564080
authored
Apr 25, 2022
by
Marc Vef
Browse files
Changing GKFS_LOG_LEVEL to GKFS_DAEMON_LOG_LEVEL
parent
bd82757d
Changes
5
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
b4564080
...
...
@@ -182,13 +182,11 @@ setting the `LIBGKFS_LOG_SYSCALL_FILTER` environment variable. For instance,
setting it to
`LIBGKFS_LOG_SYSCALL_FILTER=epoll_wait,epoll_create`
will filter
out any log entries from the
`epoll_wait()`
and
`epoll_create()`
system calls.
Additionally, setting the
`LIBGKFS_LOG_OUTPUT_TRUNC`
environment variable with
a value different from
`0`
will instruct the logging subsystem to truncate
the file used for logging, rather than append to it.
Additionally, setting the
`LIBGKFS_LOG_OUTPUT_TRUNC`
environment variable with a value different from
`0`
will instruct
the logging subsystem to truncate the file used for logging, rather than append to it.
For the daemon, the
`GKFS_DAEMON_LOG_PATH=<path/to/file>`
environment variable
can be provided to set the path to the log file, and the log module can be
selected with the
`GKFS_LOG_LEVEL={off,critical,err,warn,info,debug,trace}`
For the daemon, the
`GKFS_DAEMON_LOG_PATH=<path/to/file>`
environment variable can be provided to set the path to the
log file, and the log module can be selected with the
`GKFS_DAEMON_LOG_LEVEL={off,critical,err,warn,info,debug,trace}`
environment variable.
# Miscellaneous
...
...
docs/sphinx/users/running.md
View file @
b4564080
...
...
@@ -178,5 +178,5 @@ the logging subsystem to truncate the file used for logging, rather than append
#### Daemon logging
For the daemon, the `
GKFS_DAEMON_LOG_PATH=
<path
/
to
/
file
>
` environment variable can be provided to set the path to the
log file, and the log module can be selected with the `
GKFS_LOG_LEVEL={off,critical,err,warn,info,debug,trace}
`
log file, and the log module can be selected with the `
GKFS_
DAEMON_
LOG_LEVEL={off,critical,err,warn,info,debug,trace}
`
environment variable whereas `
trace
` produces the most trace records while `
info
`
is the default value.
\ No newline at end of file
include/config.hpp
View file @
b4564080
...
...
@@ -33,7 +33,8 @@
// environment prefixes (are concatenated in env module at compile time)
#define CLIENT_ENV_PREFIX "LIBGKFS_"
#define DAEMON_ENV_PREFIX "GKFS_"
#define DAEMON_ENV_PREFIX "GKFS_DAEMON_"
#define COMMON_ENV_PREFIX "GKFS_"
namespace
gkfs
::
config
{
...
...
include/daemon/env.hpp
View file @
b4564080
...
...
@@ -35,7 +35,7 @@
#include
<config.hpp>
#define ADD_PREFIX(str)
DAE
MON_ENV_PREFIX str
#define ADD_PREFIX(str)
COM
MON_ENV_PREFIX str
/* Environment variables for the GekkoFS daemon */
namespace
gkfs
::
env
{
...
...
src/daemon/daemon.cpp
View file @
b4564080
...
...
@@ -459,7 +459,7 @@ initialize_loggers() {
std
::
string
path
=
gkfs
::
config
::
log
::
daemon_log_path
;
// Try to get log path from env variable
std
::
string
env_path_key
=
DAEMON_ENV_PREFIX
;
env_path_key
+=
"
DAEMON_
LOG_PATH"
;
env_path_key
+=
"LOG_PATH"
;
char
*
env_path
=
getenv
(
env_path_key
.
c_str
());
if
(
env_path
!=
nullptr
)
{
path
=
env_path
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment