Enabling Runtime Logging
To enable logging at runtime for the file client (libfsalmapr.so
library),
run the fcdebug
utility:
/opt/mapr/server/tools/fcdebug -s <shmid> -m <module> [-l <level>]
/opt/mapr/server/tools/fcdebug -i -s <shmid>
Before running this command, make a note of the following:
- If necessary, run
maprcli trace info
to retrieve the list of modules.The default value for module is all.
- Level should be one of FATAL, ERROR, WARN, INFO, DEBUG.
If level is not specified, default level is applied for the module.
- The
-i
lists the current debug level of all modules. - The
shmid
is available in thefsal.log-*
files whenlibMapRClient
is loaded.For example, the first line in the log file is something similar to the following:
This2017-02-13 11:56:32,6809 ERROR FuseAPI fs/client/fileclient/cc/fuse_api.cc:1371 Thread: 428 Shmid to be used by fcdebug 512720897
shmid
can be used withfcdebug
.
NOTE
Run fcdebug
once for every library (every library has a separate shared
memory). The shmids
can be found in the respective fsal
log
files.