44 Commits

Author SHA1 Message Date
Deng Ming
0bee140abb format code 2023-05-27 14:41:51 +08:00
Ming Deng
2d2e11d57d fix 5079: only log msg when the channel is not closed (#5132) 2023-05-27 14:41:51 +08:00
Deng Ming
85473bc898 fix 5129: must set formatter after init the logger 2023-05-27 14:41:51 +08:00
Ming Deng
76343e4422
Prepare Release 2.0.6 (#5104)
* add: generic cache random time offset expired.

* bugfix: Csrf token should be Secure and httpOnly, but not now

* fix: expose the Offset property to allow external modifications

* improving the concurrency performance of random value calculation

* add WithOffsetFunc to define private RandomExpireCache.offset field

* fix: add seconds definition

* build(deps): bump github.com/stretchr/testify from 1.7.1 to 1.8.0

Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.1 to 1.8.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.1...v1.8.0)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix 4907: force admin service http only

* Feat: add get all tasks function (#4999)

* feat: add get all tasks function

* Refine Comments : admin/profile.go,bean/mock.go,config/global.go... (#5009)

* Refine Comments

* refine comments for cache.go

* refine comments for log.go

* Update orm.go

* refine comments for orm_log.go,types.go

* Update utils.go

* Update doc.go

* refine comments for for four files (#5011)

* refine comments for cache.go

* refine comments for log.go

* Update orm.go

* refine comments for orm_log.go,types.go

* Update utils.go

* Update doc.go

* Update db.go

* fix pass []any as any in variadic function by asasalint (#5012)

* fix pass []any as any in variadic function

* add change log

* build(deps): bump go.opentelemetry.io/otel/trace from 1.7.0 to 1.8.0 (#5019)

Bumps [go.opentelemetry.io/otel/trace](https://github.com/open-telemetry/opentelemetry-go) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.7.0...v1.8.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/trace
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* refine comments for package core  (#5014)

* Refine Comments

* refine comments for cache.go

* refine comments for log.go

* Update orm.go

* refine comments for orm_log.go,types.go

* Update utils.go

* Update doc.go

* refine comments

* refine comments

* Update db.go

* refine comments for core

* build(deps): bump go.opentelemetry.io/otel/exporters/stdout/stdouttrace (#5018)

Bumps [go.opentelemetry.io/otel/exporters/stdout/stdouttrace](https://github.com/open-telemetry/opentelemetry-go) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.7.0...v1.8.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/exporters/stdout/stdouttrace
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix 5022: Miss assiging ln to graceful Server (#5028)

* prepare for releasing v2.0.5

* prepare for releasing v2.0.5 (#5032)

* feat: make commands and docker compose for ORM unit tests (#5031)

* feat: make commands and docker compose for ORM unit tests

Signed-off-by: mango <xu.weiKyrie@foxmail.com>

* add changelog

Signed-off-by: mango <xu.weiKyrie@foxmail.com>

Signed-off-by: mango <xu.weiKyrie@foxmail.com>

* Modify comment syntax error (#5094)

* fix: revise the body wrapper to handle empty body case (#5102)

Fix the router.go serverHttp method, wrap the body if the request body
is empty, which can avoid panic when calling the CopyBody method.

Signed-off-by: chlins <chenyuzh@vmware.com>

Signed-off-by: chlins <chenyuzh@vmware.com>

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: mango <xu.weiKyrie@foxmail.com>
Signed-off-by: chlins <chenyuzh@vmware.com>
Co-authored-by: auual <ding@ibyte.me>
Co-authored-by: Leon Ding <deen.job@qq.com>
Co-authored-by: dada0z <zhang.guangda@qq.com>
Co-authored-by: kevinzeng <kevinzeng@zego.im>
Co-authored-by: Kevin Tsang <39397413+ktalg@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: 日暮颂歌1991 <448081525@qq.com>
Co-authored-by: Regan Yue <1131625869@qq.com>
Co-authored-by: alingse <alingse@foxmail.com>
Co-authored-by: mango <35127166+mangoGoForward@users.noreply.github.com>
Co-authored-by: 王哈哈 <31426858+wanghaha-dev@users.noreply.github.com>
Co-authored-by: Chlins Zhang <chlins.zhang@gmail.com>
2022-11-23 00:06:32 +08:00
Deng Ming
981074340a logs: multiFileLogWriter uses incorrect formatter 2022-05-16 22:13:08 +08:00
hezhaoyang
d98ab11096 fix: inject propagator header
feat: set error tag as true
fix: unit test issue
fix: deep source check error
2022-04-25 18:04:15 +08:00
Deng Ming
174291a3c8 fix 4911: make the argument work 2022-04-17 18:27:21 +08:00
Deng Ming
9081c40eaa Merge branch 'master' of github.com:beego/beego into dev 2022-01-28 00:12:47 +08:00
Deng Ming
3e886f71ca replace beego.me with beego.vip 2021-11-29 21:29:29 +08:00
Deng Ming
fe4b84e4f6 fix4791: delay to format parameter 2021-10-25 22:30:21 +08:00
nichtsen
415968070f logs: fix TestFilePermWithPrefixPath function 2021-09-14 15:01:51 +08:00
nichtsen
8ba0b4f1b8 log: use fileinfo interface for tests 2021-09-13 11:21:34 +08:00
nichtsen
a3d2dd12d6 deepsource: fix Control-coupled functions detected 2021-09-08 14:40:46 +08:00
nichtsen
16549e5019 deepsource: fix confusing naming of struct fields 2021-09-08 14:03:59 +08:00
nichtsen
1a52d005b1 logs: fix comment spelling 2021-09-07 19:18:02 +08:00
nichtsen
cc19834f79 deepsource: removing unused method receiver 2021-09-07 19:14:49 +08:00
nichtsen
9587f6d16c deepsource: empty string test improving 2021-09-07 19:12:19 +08:00
nichtsen
435196300e deepsource: simplify error construction 2021-09-07 19:08:55 +08:00
nichtsen
9212d69383 logs: add tests for directory permissions 2021-09-07 19:07:20 +08:00
nichtsen
918bc8d11c add comments for Perm and DirPerm 2021-09-07 18:27:52 +08:00
nichtsen
8b57b22c20 fix numeric notation of permissions 2021-09-07 16:14:43 +08:00
Ming Deng
4437c6eb11 merge master 2021-09-03 11:40:13 +08:00
Ming Deng
334609a1ea Fix 4728: Print wrong file number 2021-08-19 20:20:01 +08:00
t29kida
4eb19f938a fix sonar problem
* Delete FIXME comment, because `string == ""` is beter than `len(string)` for checking string existence(by sonar)
* Remove duplicated code
* Fill empty block of code
2021-06-09 19:42:18 +09:00
loyalsoldier
41790b80ac
Fix lint and format code in core dir 2021-06-06 21:00:27 +08:00
08cde0b55d [fix bug]console more empty line 2021-05-22 14:49:52 +08:00
loyalsoldier
7b99c324be
Fix code according to deepsource 2021-05-19 22:27:19 +08:00
loyalsoldier
2b7401109f
Chore: format code 2021-05-19 22:27:17 +08:00
Ming Deng
3acc858909 Merge master and develop 2021-04-05 20:55:30 +08:00
王厚伟
10860b2d27 fix log level 2021-03-16 23:22:54 +08:00
Nitin Mohan
f554a1c543 Optimize maligned structs 2021-03-08 13:01:47 +05:30
Ming Deng
45ab79249a Add when to write method 2021-02-21 12:39:46 +08:00
Ming Deng
cec95bb6d0 Fix log format bug 2021-02-05 23:28:58 +08:00
Ming Deng
4855146ac6 Fix log format bug 2021-02-05 23:12:42 +08:00
Jihoon Seo
2bb6c45786 Update beego pkg paths 2021-01-28 13:35:38 +09:00
王厚伟
4b2bd716b6 fix log level 2021-01-03 17:52:48 +08:00
Ming Deng
d4da82ef77 format code 2020-12-14 12:34:55 +08:00
Ming Deng
7bc6010604 rename to v2 2020-12-14 11:12:00 +08:00
Ming Deng
a70f7fc920 using new organization 2020-12-13 23:09:19 +08:00
Ming Deng
49d763dc6c
Merge pull request #4296 from flycash/fix4138
Fix 4138
2020-11-10 21:58:28 +08:00
AllenX2018
b3474b20b9 fix issue 4282 2020-11-10 15:45:34 +08:00
Ming Deng
2a6fadb9ae Fix 4138 2020-11-09 22:46:26 +08:00
Ming Deng
b4396c97bb fix init error of global instance 2020-11-05 22:00:43 +08:00
Ming Deng
14c1b76569 remove pkg directory;
remove build directory;
remove githook directory;
2020-10-08 18:29:36 +08:00