Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jacobsa-fuse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
jacobsa-fuse
Commits
528f3d1d
Commit
528f3d1d
authored
Jul 16, 2015
by
Aaron Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix debug logging for subprocess tests.
parent
c42ea099
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
samples/mount_sample/mount.go
samples/mount_sample/mount.go
+5
-0
samples/subprocess.go
samples/subprocess.go
+1
-1
No files found.
samples/mount_sample/mount.go
View file @
528f3d1d
...
...
@@ -40,6 +40,7 @@ var fFlushError = flag.Int("flushfs.flush_error", 0, "")
var
fFsyncError
=
flag
.
Int
(
"flushfs.fsync_error"
,
0
,
""
)
var
fReadOnly
=
flag
.
Bool
(
"read_only"
,
false
,
"Mount in read-only mode."
)
var
fDebug
=
flag
.
Bool
(
"debug"
,
false
,
"Enable debug logging."
)
func
makeFlushFS
()
(
server
fuse
.
Server
,
err
error
)
{
// Check the flags.
...
...
@@ -140,6 +141,10 @@ func main() {
ReadOnly
:
*
fReadOnly
,
}
if
*
fDebug
{
cfg
.
DebugLogger
=
log
.
New
(
os
.
Stderr
,
"fuse: "
,
0
)
}
mfs
,
err
:=
fuse
.
Mount
(
*
fMountPoint
,
server
,
cfg
)
if
err
!=
nil
{
log
.
Fatalf
(
"Mount: %v"
,
err
)
...
...
samples/subprocess.go
View file @
528f3d1d
...
...
@@ -276,7 +276,7 @@ func (t *SubprocessTest) initialize(ctx context.Context) (err error) {
// Handle debug mode.
if
*
fDebug
{
mountCmd
.
Stderr
=
os
.
Stderr
mountCmd
.
Args
=
append
(
mountCmd
.
Args
,
"--
fuse.
debug"
)
mountCmd
.
Args
=
append
(
mountCmd
.
Args
,
"--debug"
)
}
// Start the command.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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