Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
beego
Project
Project
Details
Activity
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
beego
Commits
83fe43f3
Commit
83fe43f3
authored
Mar 11, 2016
by
astaxie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gofmt -s -w
parent
40b41cc1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
log.go
logs/log.go
+1
-1
logger.go
logs/logger.go
+0
-1
tree.go
tree.go
+2
-2
No files found.
logs/log.go
View file @
83fe43f3
...
...
@@ -152,7 +152,7 @@ func (bl *BeeLogger) SetLogger(adapterName string, config string) error {
return
fmt
.
Errorf
(
"logs: duplicate adaptername %q (you have set this logger before)"
,
adapterName
)
}
}
log
,
ok
:=
adapters
[
adapterName
]
if
!
ok
{
return
fmt
.
Errorf
(
"logs: unknown adaptername %q (forgotten Register?)"
,
adapterName
)
...
...
logs/logger.go
View file @
83fe43f3
...
...
@@ -12,7 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package
logs
import
(
...
...
tree.go
View file @
83fe43f3
...
...
@@ -141,7 +141,7 @@ func (t *Tree) addtree(segments []string, tree *Tree, wildcards []string, reg st
regexpStr
=
"([^.]+).(.+)"
params
=
params
[
1
:
]
}
else
{
for
_
=
range
params
{
for
range
params
{
regexpStr
=
"([^/]+)/"
+
regexpStr
}
}
...
...
@@ -254,7 +254,7 @@ func (t *Tree) addseg(segments []string, route interface{}, wildcards []string,
regexpStr
=
"/([^.]+).(.+)"
params
=
params
[
1
:
]
}
else
{
for
_
=
range
params
{
for
range
params
{
regexpStr
=
"/([^/]+)"
+
regexpStr
}
}
...
...
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