This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
gitea
Watch
3
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Disable log color in prod mode
for-closed-social
Unknwon
9 years ago
parent
ff051e2106
commit
bebbd08920
3 changed files
with
3 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
gogs.go
+1
-0
routers/install.go
+1
-1
templates/.VERSION
+ 1
- 1
gogs.go
View File
@ -17,7 +17,7 @@ import (
"github.com/gogits/gogs/modules/setting"
)
const
APP_VER
=
"0.6.1.071
5
Beta"
const
APP_VER
=
"0.6.1.071
6
Beta"
func
init
(
)
{
runtime
.
GOMAXPROCS
(
runtime
.
NumCPU
(
)
)
+ 1
- 0
routers/install.go
View File
@ -36,6 +36,7 @@ func checkRunMode() {
switch
setting
.
Cfg
.
Section
(
""
)
.
Key
(
"RUN_MODE"
)
.
String
(
)
{
case
"prod"
:
macaron
.
Env
=
macaron
.
PROD
macaron
.
ColorLog
=
false
setting
.
ProdMode
=
true
case
"test"
:
macaron
.
Env
=
macaron
.
TEST
+ 1
- 1
templates/.VERSION
View File
@ -1 +1 @@
0.6.1.071
5
Beta
0.6.1.071
6
Beta
Write
Preview
Loading…
Cancel
Save