Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张磊
/
FileStorageBeego
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
19c3a5b4
authored
2014-07-09 09:38:36 +0800
by
astaxie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
beego: improve the router debug infomation
1 parent
e635e274
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
router.go
router.go
View file @
19c3a5b
...
...
@@ -756,11 +756,13 @@ Admin:
}
if
RunMode
==
"dev"
{
var
devinfo
string
if
findrouter
{
Info
(
"beego: router defined "
+
routerInfo
.
pattern
+
" "
+
r
.
URL
.
Path
+
" +"
+
timeend
.
String
()
)
devinfo
=
fmt
.
Sprintf
(
"| % -10s| % -16s | % -10s | % -40s | % -10s | % -40s |"
,
"beego"
,
timeend
.
String
(),
r
.
Method
,
r
.
URL
.
Path
,
"match"
,
routerInfo
.
pattern
)
}
else
{
Info
(
"beego:"
+
r
.
URL
.
Path
+
" 404"
+
" +"
+
timeend
.
String
()
)
devinfo
=
fmt
.
Sprintf
(
"| % -10s| % -16s | % -10s | % -40s | % -10s |"
,
"beego"
,
timeend
.
String
(),
r
.
Method
,
r
.
URL
.
Path
,
"notmatch"
)
}
Info
(
devinfo
)
}
// Call WriteHeader if status code has been set changed
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment