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
be586572
Commit
be586572
authored
Feb 10, 2017
by
astaxie
Committed by
GitHub
Feb 10, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2423 from ansiz/master
Add config field EnableErrorsRender
parents
4e047bd4
9b714a75
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
config.go
config.go
+3
-1
db.go
orm/db.go
+1
-0
No files found.
config.go
View file @
be586572
...
...
@@ -41,6 +41,7 @@ type Config struct {
EnableGzip
bool
MaxMemory
int64
EnableErrorsShow
bool
EnableErrorsRender
bool
Listen
Listen
WebConfig
WebConfig
Log
LogConfig
...
...
@@ -171,7 +172,7 @@ func recoverPanic(ctx *context.Context) {
logs
.
Critical
(
fmt
.
Sprintf
(
"%s:%d"
,
file
,
line
))
stack
=
stack
+
fmt
.
Sprintln
(
fmt
.
Sprintf
(
"%s:%d"
,
file
,
line
))
}
if
BConfig
.
RunMode
==
DEV
{
if
BConfig
.
RunMode
==
DEV
&&
BConfig
.
EnableErrorsRender
{
showErr
(
err
,
ctx
,
stack
)
}
}
...
...
@@ -189,6 +190,7 @@ func newBConfig() *Config {
EnableGzip
:
false
,
MaxMemory
:
1
<<
26
,
//64MB
EnableErrorsShow
:
true
,
EnableErrorsRender
:
true
,
Listen
:
Listen
{
Graceful
:
false
,
ServerTimeOut
:
0
,
...
...
orm/db.go
View file @
be586572
...
...
@@ -48,6 +48,7 @@ var (
"lte"
:
true
,
"eq"
:
true
,
"nq"
:
true
,
"ne"
:
true
,
"startswith"
:
true
,
"endswith"
:
true
,
"istartswith"
:
true
,
...
...
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