Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3-cmds
Commits
ca08e5b7
Commit
ca08e5b7
authored
Feb 01, 2016
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sort options and add id to verbose output
License: MIT Signed-off-by:
Jeromy
<
jeromyj@gmail.com
>
parent
dde7c59c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
reqlog.go
reqlog.go
+8
-3
No files found.
reqlog.go
View file @
ca08e5b7
...
...
@@ -20,13 +20,18 @@ type ReqLogEntry struct {
}
func
(
r
*
ReqLogEntry
)
Finish
()
{
r
.
log
.
lock
.
Lock
()
defer
r
.
log
.
lock
.
Unlock
()
log
:=
r
.
log
log
.
lock
.
Lock
()
defer
log
.
lock
.
Unlock
()
r
.
Active
=
false
r
.
EndTime
=
time
.
Now
()
r
.
log
.
maybeCleanup
()
// remove references to save memory
r
.
req
=
nil
r
.
log
=
nil
}
func
(
r
*
ReqLogEntry
)
Copy
()
*
ReqLogEntry
{
...
...
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