Commit Graph

34 Commits

Author SHA1 Message Date
ioito
612d4b17b4 fix(common): show request time with rfc3339 2023-04-11 20:54:43 +08:00
ioito
6f0128bed3 fix(common): log time zone and format 2023-04-11 17:23:21 +08:00
Jian Qiu
21716cefb5 fix: remove mutual dependency of cloudmux on onecloud (#15621)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-12-27 01:21:26 +08:00
Jian Qiu
ec90862764 fix: remove dependency of appctx on i18n (#15615)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-12-23 23:44:52 +08:00
Yousong Zhou
1c1dcbde45 i18n: move out from httperrors pkg 2020-09-21 10:12:57 +08:00
Zexi Li
0bcaeda09d Merge pull request #7910 from rainzm/notify/ti
Feat & Fix of Notify
2020-09-16 11:32:41 +08:00
Qiu Jian
5a91ae8863 fix: omit empty fail reason 2020-09-16 01:53:29 +08:00
rainzm
4b49bcec8f feat: add WithCtx version to notifyclient function 2020-09-14 20:31:17 +08:00
Yousong Zhou
776ef9b8b5 httperrors: HTTPError: use Error type 2020-09-07 18:51:29 +08:00
Yousong Zhou
4d7eee4f2b httperrors: add Error type 2020-09-07 18:18:39 +08:00
Yousong Zhou
b314b66b71 Bugfix/yousong i18n (#7712)
* httperrors: support setting lang with X-Yunion-Lang

* mcclient: session: set lang
2020-09-01 19:11:41 +08:00
Yousong Zhou
da64e4a267 httperrors: use existing details if id is not present (#7710) 2020-09-01 18:32:37 +08:00
Yousong Zhou
c2bca8ab39 Feature/yousong text (#7487)
* notify: log with context info

* region: guests: log with context info

* region: hosts: log with context info

* region: misc: remove redundant log

* region: skus: use NewInternalServerError instead of NewGeneralError

* appsrv: dispatcher: preserve text id

* appsrv: dispatcher: remove commented-out code

* cloudcommon: db_dispatcher: note errors that won't be translated

* cloudcommon: db: rbac: preserve text id

* cloudcommon: caller: preserve text id

* treewide: fix fmt string

* region: guest_actions: preserve text id

* region: guest_actions: fix fmt string

* region: usages: fix fmt string

* mcclient: hosts: remove redundant return value

* cloudcommon: fetch: preserve text id

* region: guest_template: preserve text id

* cloudcommon: db: db_dispatcher: preserve text id

* region: guest_actions: preserve text id

* httperrors: add funcs for wrap lang tag into context

* vendor: golang.org/x/text

* httperrors: error with context

* httperrors: HTTPError

* treewide: fix typo

* treewide: use en in source code

* locales: initial version
2020-08-25 15:26:31 +08:00
Qiu Jian
bdfa99b0b6 fix: server change config failed due to quota recode 2019-12-16 21:03:52 +08:00
Qiu Jian
c938da9edd fix: adjust default policies for system resources 2019-08-05 18:56:05 +08:00
Jian Qiu
1d7fd20df4 misc bugfix (#1296) 2019-06-19 02:45:52 +08:00
TangBin
0cc28b4eb0 httperror-set-header-fix 2019-06-04 11:09:41 +08:00
TangBin
f2ceea4fe8 parameter create fix && itsm add quick complete method 2019-06-03 19:00:10 +08:00
Qiu Jian
dd13a991c0 fix: misc bug fixes. add usage and event log API 2019-05-17 13:54:29 +08:00
Qiu Jian
004d9b6f95 update copyright headers of all source 2019-03-29 14:47:48 +08:00
Yousong Zhou
8fe4f2ec98 treewide: group imports with goimports
./goimports -w -local yunion.io/x/onecloud/ -corp yunion.io/x/ $GOPATH/src/yunion.io/x/onecloud/{cmd,pkg}
2019-03-13 10:46:12 +00:00
Qiu Jian
2e587bd6ab glance重构 update 1
Conflicts:
	Gopkg.lock
	pkg/appsrv/appsrv.go
	pkg/cloudcommon/options.go
	pkg/compute/models/hosts.go
	pkg/compute/models/quotas.go
	pkg/compute/service/service.go
	pkg/mcclient/mcclient.go
2018-12-26 22:52:13 +08:00
Yousong Zhou
af3054ded3 httperrors: 修正InternalServerError调用 2018-11-30 03:07:01 +00:00
邱剑
33c0bc7c26 Automatic merge from release/2.2.0 -> release/2.3.0
* commit 'd746c291c3e2e2e6724313c447fc2893069b0de2':
  修正:保护系统默认创建的default资源,不允许删除
2018-10-24 12:08:56 +08:00
Qiu Jian
3ac638239b Merge branch 'release/2.1.0' of ssh://git.yunion.io/~qiujian/onecloud into hotfix/qj-resolve-conflict-20180824-2.2.0
Conflicts:
	pkg/httperrors/httperrors.go
2018-10-24 12:07:23 +08:00
Qiu Jian
350f4e4db9 修正:保护系统默认创建的default资源,不允许删除 2018-10-24 12:00:53 +08:00
Qiu Jian
73eff73289 Merge branch 'release/2.2.0' of ssh://git.yunion.io/~qiujian/onecloud into hotfix/qj-resolve-conflict-20181022-2.3.0
Conflicts:
	pkg/httperrors/httperrors.go
2018-10-22 12:29:07 +08:00
Qiu Jian
0dbc93725d 修正:利用context.Timeout,appsrv支持processTimeout,避免yunionapi由于后端卡住导致yunionapi卡住 2018-10-20 22:32:43 +08:00
Qiu Jian
23443c07bc 修正:1. 阿里云自动设置Import/Export image ram授权,不再需要手动授权 2.
修正公有云注入userdata的问题
2018-10-13 20:36:15 +08:00
TangBin
65880ff857 mcclient error 2018-09-18 14:50:45 +08:00
TangBin
57c1766568 errors add variable params 2018-08-23 18:15:06 +08:00
TangBin
a85f3d7176 错误返回新增data字段 2018-08-23 16:31:23 +08:00
Zexi Li
22411ffb53 path move: github.com/yunionio -> yunion.io/x 2018-08-11 14:28:18 +08:00
Zexi Li
b5275a0c29 - mv mcclient to pkg/mcclient
- vendor update
2018-08-01 14:13:23 +08:00