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
f7cd1479
authored
2014-09-05 17:04:02 +0800
by
astaxie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
beego: improve the log debug for running server
1 parent
08b3e419
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
admin.go
app.go
admin.go
View file @
f7cd147
...
...
@@ -458,6 +458,7 @@ func (admin *adminApp) Run() {
for
p
,
f
:=
range
admin
.
routers
{
http
.
Handle
(
p
,
f
)
}
BeeLogger
.
Info
(
"Running on %s"
,
addr
)
err
:=
http
.
ListenAndServe
(
addr
,
nil
)
if
err
!=
nil
{
BeeLogger
.
Critical
(
"Admin ListenAndServe: "
,
err
)
...
...
app.go
View file @
f7cd147
...
...
@@ -48,8 +48,6 @@ func (app *App) Run() {
addr
=
fmt
.
Sprintf
(
"%s:%d"
,
HttpAddr
,
HttpPort
)
}
BeeLogger
.
Info
(
"Running on %s"
,
addr
)
var
(
err
error
l
net
.
Listener
...
...
@@ -78,6 +76,7 @@ func (app *App) Run() {
if
HttpsPort
!=
0
{
app
.
Server
.
Addr
=
fmt
.
Sprintf
(
"%s:%d"
,
HttpAddr
,
HttpsPort
)
}
BeeLogger
.
Info
(
"Running on %s"
,
app
.
Server
.
Addr
)
err
:=
app
.
Server
.
ListenAndServeTLS
(
HttpCertFile
,
HttpKeyFile
)
if
err
!=
nil
{
BeeLogger
.
Critical
(
"ListenAndServeTLS: "
,
err
)
...
...
@@ -90,6 +89,7 @@ func (app *App) Run() {
if
EnableHttpListen
{
go
func
()
{
app
.
Server
.
Addr
=
addr
BeeLogger
.
Info
(
"Running on %s"
,
app
.
Server
.
Addr
)
err
:=
app
.
Server
.
ListenAndServe
()
if
err
!=
nil
{
BeeLogger
.
Critical
(
"ListenAndServe: "
,
err
)
...
...
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