Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
a411fe7e
Commit
a411fe7e
authored
Jan 26, 2016
by
Felix Lange
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
logger/glog: fix TraceLocation.Set("")
parent
5728dd38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
glog.go
logger/glog/glog.go
+4
-0
No files found.
logger/glog/glog.go
View file @
a411fe7e
...
@@ -407,9 +407,13 @@ var errTraceSyntax = errors.New("syntax error: expect file.go:234")
...
@@ -407,9 +407,13 @@ var errTraceSyntax = errors.New("syntax error: expect file.go:234")
func
(
t
*
TraceLocation
)
Set
(
value
string
)
error
{
func
(
t
*
TraceLocation
)
Set
(
value
string
)
error
{
if
value
==
""
{
if
value
==
""
{
// Unset.
// Unset.
logging
.
mu
.
Lock
()
t
.
line
=
0
t
.
line
=
0
t
.
file
=
""
t
.
file
=
""
logging
.
mu
.
Unlock
()
return
nil
}
}
fields
:=
strings
.
Split
(
value
,
":"
)
fields
:=
strings
.
Split
(
value
,
":"
)
if
len
(
fields
)
!=
2
{
if
len
(
fields
)
!=
2
{
return
errTraceSyntax
return
errTraceSyntax
...
...
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