1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-14 06:40:55 +00:00
Commit Graph

3385 Commits

Author SHA1 Message Date
JessonChan
ea91e7638c move log function to log package 2019-03-12 17:01:23 +08:00
JessonChan
4564e9810c logger_test imported and not used: "bytes" 2019-03-12 16:36:00 +08:00
JessonChan
44a1a8f6be println is builtin function 2019-03-12 15:51:43 +08:00
JessonChan
9cecb22170 NewAnsiColorWriter remove 2019-03-12 15:13:54 +08:00
JessonChan
7693502aaa logAdapter is more readable 2019-03-12 13:20:13 +08:00
JessonChan
c0fae547e9 remove ansicolor code,import ansicolor package 2019-03-12 12:14:09 +08:00
JessonChan
0ba77a0d87 colorful is the switch to level label 2019-03-12 12:12:59 +08:00
JessonChan
661dcbb6ca router logger modify 2019-03-12 12:11:25 +08:00
JessonChan
578440a18d add ansicolor to beego 2019-03-12 12:09:41 +08:00
JessonChan
93485df3d2 color should be false by default otherwise the http logger's color would be wrong 2019-03-08 14:42:06 +08:00
JessonChan
121fab61f1 ResetColor function 2019-03-08 12:18:45 +08:00
JessonChan
915eec7943 Merge branch 'develop' of github.com:astaxie/beego into develop 2019-03-08 12:16:00 +08:00
JessonChan
8432a1c758 better comment for color map 2019-03-08 12:10:57 +08:00
JessonChan
4a5e108527 logger color function refactor,easy to read and run more quickly 2019-03-08 11:50:30 +08:00
JessonChan
6dd5171fdf logger color function refactor,easy to read and run more quickly 2019-03-08 11:08:39 +08:00
astaxie
c2b6cb5c3a
Merge pull request #3560 from JessonChan/develop
TestToJson bug fixed
2019-03-08 00:18:39 +08:00
JessonChan
1f93040af6 Merge remote-tracking branch 'upstream/develop' into develop 2019-03-07 18:07:37 +08:00
JessonChan
52f8ccd06c TestToJson bug fixed 2019-03-07 17:15:30 +08:00
astaxie
3b86feab8a
Merge pull request #3555 from hellomrleeus/develop
spelling mistake of word "Header"
2019-03-06 09:58:54 +08:00
hellomrlee
aba51d99a1 spelling mistake of word "Header" 2019-03-04 11:05:29 +08:00
astaxie
422e8285b5
Merge pull request #3494 from nuczzz/develop
simplify beego grace with http.Shutdown
2019-02-26 16:31:40 +08:00
astaxie
bb6ca6b100
Merge pull request #3522 from saromanov/check-input-data
SessionRead: check of the length for input sid variable
2019-02-25 23:17:57 +08:00
astaxie
1483c1f545
Merge pull request #3524 from Quasilyte/quasilyte/bytesreader
config/yaml: s/bytes.NewBuffer/bytes.NewReader/
2019-02-25 23:16:39 +08:00
astaxie
3d6a68de77
Merge pull request #3535 from gadelkareem/develop
Make LogAccess() function public
2019-02-25 23:11:14 +08:00
astaxie
387d387080
Merge pull request #3547 from snedzad/patch-1
Register .gohtml extension
2019-02-25 11:43:37 +08:00
Nedzad Smajic
94ed35e781
Register .gohtml extension
Goland as of 2018.3 seems to support only '.tpl.gohtml" and ".gohtml" templates. The regular ".tpl" templates will be rendered as plain text files which is not acceptable.
2019-02-23 22:49:32 +01:00
Waleed Gadelkareem
8995b291a9 Make LogAccess public 2019-02-14 16:30:25 +01:00
Waleed Gadelkareem
1942438b22
Merge pull request #3 from astaxie/develop
develop
2019-02-14 16:23:35 +01:00
astaxie
40d653e659
Merge pull request #3533 from tvanriper/patch-1
APIBaiscAuth is misspelling of APIBasicAuth
2019-02-13 02:10:25 +08:00
Joseph Edwards Van Riper III
ddcd28e67f
APIBaiscAuth is misspelling of APIBasicAuth
Corrected APIBaiscAuth to APIBasicAuth.  Maintained old name (forwarding to new one) for those still using the previous API function name.
2019-02-12 13:00:11 -05:00
Iskander Sharipov
c998e52cc0 config/yaml: s/bytes.NewBuffer/bytes.NewReader/
When io.Reader is required out of []byte,
it's better to use bytes.NewReader than bytes.NewBuffer.

Signed-off-by: Iskander Sharipov <quasilyte@gmail.com>
2019-02-10 20:37:43 +03:00
Faissal Elamraoui
3224369ac9
Merge pull request #3523 from Quasilyte/quasilyte/boolExprSimplify
Simplify boolean expressions
2019-02-09 16:16:31 +01:00
Iskander Sharipov
67666dbe0f all: simplify boolean expressions
- !(a == b) => a != b
- !(a != b) => a == b

Signed-off-by: Iskander Sharipov <quasilyte@gmail.com>
2019-02-09 17:18:59 +03:00
Sergey
d7430eb921
SessionRead: check of the length for input sid variable 2019-02-04 11:03:27 +05:00
astaxie
26a6b426f1
Merge pull request #3487 from duyazhe/patch-1
Update orm_log.go
2019-02-04 11:26:42 +08:00
astaxie
6f35ce67f7
Merge pull request #3493 from bharat-p/3492-add-db-stats-to-ormer
Add DBStats method wrapper to provide sql.DBStats when using ormer
2019-02-04 11:24:13 +08:00
astaxie
3406d58797
Merge pull request #3503 from wtospit/develop
fix: when parse post form it didnt parse fields correctly
2019-02-04 11:23:23 +08:00
astaxie
7925458fc0
Merge pull request #3502 from Quasilyte/patch-1
cache: remove excessive type assertions
2019-02-02 16:43:04 +08:00
astaxie
b6854aaf9f
Merge pull request #3506 from DennisMao/hotfixFileCachePanic
fix panic cause by the map
2019-02-02 16:38:11 +08:00
astaxie
656f595226
Merge pull request #3508 from Quasilyte/patch-2
replace unchecked Compile calls with MustCompile
2019-02-02 16:36:15 +08:00
astaxie
280aaf9d3b
Merge pull request #3519 from zav8/add_support_for_pointer_fields
add support for pointer fields of structs to method QueryRows()
2019-02-02 16:35:41 +08:00
zav8
7abdb05f91 little fix 2019-02-01 15:39:40 +08:00
zav8
af4464ce58 add support for pointer fields of structs to method QueryRows() 2019-02-01 15:27:10 +08:00
Iskander (Alex) Sharipov
6ca0978777
replace unchecked Compile calls with MustCompile
For constant patterns and especially when errors are ignored,
`regexp.MustCompile` is a better choice than `regexp.Compile`.

Signed-off-by: Iskander Sharipov <quasilyte@gmail.com>
2019-01-26 14:13:53 +03:00
DennisMao
8506194d2c fix panic cause by the map 2019-01-25 19:08:39 +08:00
Witaya Tospitakkul
3bd7614ade refactoring code after discussion 2019-01-25 11:00:24 +07:00
Witaya Tospitakkul
bd1b421491 fix: adding test for issue due to testing is not reflect changed 2019-01-25 09:04:01 +07:00
Witaya Tospitakkul
920207f72c add testing for ParseForm when form post has a slice in body 2019-01-25 00:38:14 +07:00
Witaya Tospitakkul
12fdc04f1b fix: when parse post form it didnt parse fields which have same name but the first index is empty but another is not 2019-01-25 00:15:40 +07:00
astaxie
d0c744ae6a
Merge pull request #3499 from JessonChan/develop
fix download filename(chinese) bug
2019-01-24 17:27:29 +08:00