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
0207caab
authored
2015-06-15 20:44:14 +0800
by
astaxie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
keep the shortname for logs info/warn/debug
1 parent
d629c1d3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
log.go
staticfile.go
log.go
View file @
0207caa
...
...
@@ -78,9 +78,9 @@ func Warning(v ...interface{}) {
BeeLogger
.
Warning
(
generateFmtStr
(
len
(
v
)),
v
...
)
}
//
Deprecated: compatibility alias for Warning(), Will be removed in 1.5.0.
//
compatibility alias for Warning()
func
Warn
(
v
...
interface
{})
{
Warning
(
v
...
)
BeeLogger
.
Warn
(
generateFmtStr
(
len
(
v
)),
v
...
)
}
func
Notice
(
v
...
interface
{})
{
...
...
@@ -92,9 +92,9 @@ func Informational(v ...interface{}) {
BeeLogger
.
Informational
(
generateFmtStr
(
len
(
v
)),
v
...
)
}
//
Deprecated: compatibility alias for Warning(), Will be removed in 1.5.0.
//
compatibility alias for Warning()
func
Info
(
v
...
interface
{})
{
Informational
(
v
...
)
BeeLogger
.
Info
(
generateFmtStr
(
len
(
v
)),
v
...
)
}
// Debug logs a message at debug level.
...
...
@@ -103,7 +103,7 @@ func Debug(v ...interface{}) {
}
// Trace logs a message at trace level.
//
Deprecated: compatibility alias for Warning(), Will be removed in 1.5.0.
//
compatibility alias for Warning()
func
Trace
(
v
...
interface
{})
{
BeeLogger
.
Trace
(
generateFmtStr
(
len
(
v
)),
v
...
)
}
...
...
staticfile.go
View file @
0207caa
...
...
@@ -58,7 +58,7 @@ func serverStaticRouter(ctx *context.Context) {
finfo
,
err
:=
os
.
Stat
(
file
)
if
err
!=
nil
{
if
RunMode
==
"dev"
{
Warn
(
err
)
Warn
(
"Can't find the file:"
,
file
,
err
)
}
http
.
NotFound
(
ctx
.
ResponseWriter
,
ctx
.
Request
)
return
...
...
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