gitea/routers
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
..
admin
api/v1 [refactor] Unify the export of user data via API (#15144) 2021-03-27 17:45:26 +01:00
dev
events
org
private
repo [refactor] Unify the export of user data via API (#15144) 2021-03-27 17:45:26 +01:00
routes Fix bug on avatar middleware (#15124) 2021-03-23 18:20:24 +01:00
user
utils
home.go
init.go
install.go use level config in main section when subsection not set level (#15176) 2021-03-28 20:08:19 +01:00
metrics.go
swagger_json.go