mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 21:35:58 +03:00
[GH-ISSUE #416] Debug level messages do not print/log #220
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#220
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fstuff on GitHub (May 14, 2016).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/416
Hello,
It seems to me that debug level messages are not being printed/logged even when the debug log level is set to "debug".
Steps to view/reproduce:
Using version 1.79
Start s3fs
sudo /usr/local/bin/s3fs $mybucket $mypath \-o use_cache="/tmp/" \-o storage_class="standard_ia" \-o url="https://s3.amazonaws.com" \-o endpoint="us-west-2" \-o ensure_diskfree="1000" \-o allow_other \-o dbglevel="debug"cp robots.txt $mypathcase 403:S3FS_PRN_INFO3("HTTP response code 403 was returned, returning EPERM");S3FS_PRN_DBG("Body Text: %s", (bodydata ? bodydata->str() : ""));return -EPERM;As shown in the log printout above, however, the debug line is not logged. As far as I can tell, no debug printouts are displaying at all.
@ggtakec commented on GitHub (May 15, 2016):
@fstuff
You are running s3fs as background process, then s3fs's message puts syslog(/var/messages etc) now.
S3FS_PRN_DBG function(macro) puts messages as LOG_DEBUG level of syslog messages.
Then you can change syslog.conf for putting LOG_DEBUG level log, or run s3fs as forground process.
If you run s3fs foreground, you can catch LOG_DEBUG message on stdout.
Thanks in advance for your assistance.
@fstuff commented on GitHub (May 15, 2016):
Ok thank you for your helpful response. I ran s3fs in the foreground and confirmed that debug messages are printed to the console. Looks like there is some issue with my syslog configuration. Closing this issue, thanks again.
@SachitNayak commented on GitHub (Jul 15, 2022):
to run s3fs as foreground process use -f, example: s3fs -f .......
@vijayscsa commented on GitHub (Dec 29, 2023):
Hi Team, which is the log file or folders to be checked for debug as my s3fs mounted fs in Redhat linux 8 disconnects frequently.. Also how shall i find out how many minutes the file system was mounted/up and running.. Thanks