gitea/modules
a1012112796 3273fb9af1
use level config in main section when subsection not set level (#15176)
in previouse if a log subsetcion not set level
it will use ``info`` as default value.

this pr will make default value (``[log] -> LEVEL``) useable.

example config:
```INI
[log]
MODE = console
LEVEL = Trace

[log.console]
LEVEL =
STDERR = false
```

previous result:
```JSON
// console:
{
  "level": "info",
  ...................
}
```

after change:

```JSON
// console:
{
  "level": "track",
  ...................
}
```

Signed-off-by: a1012112796 <1012112796@qq.com>

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
2021-03-28 20:08:19 +01:00
..
analyze
auth Add SameSite setting for cookies (#14900) 2021-03-07 08:12:43 +00:00
avatar
base Add some Unit-Tests (#14500) 2021-01-28 19:08:11 +01:00
cache [Vendor] Update go-redis to v8.5.0 (#13749) 2021-02-10 21:28:32 +00:00
charset
context Add SameSite setting for cookies (#14900) 2021-03-07 08:12:43 +00:00
convert Expose resolver via API (#15167) 2021-03-28 00:37:51 +01:00
cron Cron job to cleanup hook_task table (#13080) 2021-01-26 22:02:42 +01:00
doctor Delete Labels & IssueLabels on Repo Delete too (#15039) 2021-03-19 21:01:24 +02:00
emoji Fix several render issues (#14986) 2021-03-16 00:20:05 +01:00
eventsource Migrate to use jsoniter instead of encoding/json (#14841) 2021-03-01 22:08:10 +01:00
forms Add DefaultMergeStyle option to repository (#14789) 2021-03-27 15:55:40 +01:00
generate
git support gitmailmap in GetCodeActivityStats() (#15009) 2021-03-17 17:00:26 -04:00
gitgraph
graceful Make internal SSH server host key path configurable (#14918) 2021-03-08 03:43:59 +01:00
hcaptcha
highlight
httpcache
httplib Migrate to use jsoniter instead of encoding/json (#14841) 2021-03-01 22:08:10 +01:00
indexer Move Bleve and Elastic code indexers to use a common cat-file --batch (#14781) 2021-03-03 21:57:01 -05:00
lfs Fix race in LFS ContentStore.Put(...) (#14895) 2021-03-06 20:21:56 +00:00
log Migrate to use jsoniter instead of encoding/json (#14841) 2021-03-01 22:08:10 +01:00
markup Clusterfuzz found another way (#15160) 2021-03-26 01:21:00 +02:00
matchlist
metrics
migrations [Vendor] update gitea-sdk v0.14.0 (#15103) 2021-03-22 18:03:18 +01:00
nosql [Vendor] Update go-redis to v8.5.0 (#13749) 2021-02-10 21:28:32 +00:00
notification [refactor] Unify the export of user data via API (#15144) 2021-03-27 17:45:26 +01:00
options
password
pprof
private Migrate to use jsoniter instead of encoding/json (#14841) 2021-03-01 22:08:10 +01:00
process Reduce data races (#14549) 2021-02-03 22:36:38 +01:00
public Update docs and comments to remove macaron (#14491) 2021-01-29 16:35:30 +01:00
queue Migrate to use jsoniter instead of encoding/json (#14841) 2021-03-01 22:08:10 +01:00
recaptcha Migrate to use jsoniter instead of encoding/json (#14841) 2021-03-01 22:08:10 +01:00
references
repofiles [Refactor] remove possible resource leak (#15067) 2021-03-21 00:30:29 +08:00
repository Update repository size on cron gc task (#15177) 2021-03-28 05:56:28 +02:00
secret
session Migrate to use jsoniter instead of encoding/json (#14841) 2021-03-01 22:08:10 +01:00
setting use level config in main section when subsection not set level (#15176) 2021-03-28 20:08:19 +01:00
ssh Make internal SSH server host key path configurable (#14918) 2021-03-08 03:43:59 +01:00
storage Fix race in local storage (#14888) 2021-03-05 14:19:17 +01:00
structs Expose resolver via API (#15167) 2021-03-28 00:37:51 +01:00
svg
sync
task Migrate to use jsoniter instead of encoding/json (#14841) 2021-03-01 22:08:10 +01:00
templates Prevent incorrect HTML escaping in swagger.json (#14957) 2021-03-11 23:43:04 -05:00
test Move middlewares to web/middleware (#14480) 2021-01-30 10:55:53 +02:00
timeutil Fix display since time round (#14226) 2021-01-28 13:29:22 +01:00
translation Use i18n.Reset to reload locales (#15073) 2021-03-21 16:11:36 +01:00
upload
uri
user
util [API] Add pagination to ListBranches (#14524) 2021-02-03 20:06:13 +01:00
validation Move macaron to chi (#14293) 2021-01-26 16:36:53 +01:00
web Add SameSite setting for cookies (#14900) 2021-03-07 08:12:43 +00:00