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
3e4a8fd4
Commit
3e4a8fd4
authored
Apr 29, 2015
by
Aaron Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Shorter op IDs.
parent
a524c3fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
connection.go
connection.go
+7
-5
No files found.
connection.go
View file @
3e4a8fd4
...
...
@@ -30,7 +30,9 @@ type Connection struct {
logger
*
log
.
Logger
wrapped
*
bazilfuse
.
Conn
opsInFlight
sync
.
WaitGroup
nextOpID
uint64
// For logging purposes only.
nextOpID
uint32
}
// Responsibility for closing the wrapped connection is transferred to the
...
...
@@ -46,10 +48,10 @@ func newConnection(
return
}
// Log information for an operation with the given
unique ID. calldepth is the
//
depth
to use when recovering file:line information with runtime.Caller.
// Log information for an operation with the given
ID. calldepth is the depth
// to use when recovering file:line information with runtime.Caller.
func
(
c
*
Connection
)
log
(
opID
uint
64
,
opID
uint
32
,
calldepth
int
,
format
string
,
v
...
interface
{})
{
...
...
@@ -65,7 +67,7 @@ func (c *Connection) log(
// Format the actual message to be printed.
msg
:=
fmt
.
Sprintf
(
"Op 0x%0
16
x %v:%v] %v"
,
"Op 0x%0
8
x %v:%v] %v"
,
opID
,
path
.
Base
(
file
),
line
,
...
...
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