Skip to content

Commit 3b9cbc9

Browse files
committed
update: 将配置中的 logger 字段更名为 log
1 parent 5464368 commit 3b9cbc9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

config/config.yaml.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ server: # 媒体服务器相关设置
55
addr: http://localhost:8096 # 媒体服务器地址
66
auth: 2eaxxxxxxxxxa8 # 媒体服务器认证方式
77

8-
logger: # 日志设定
8+
log: # 日志设定
99
access: # 访问日志设定
1010
console: true # 是否将访问日志文件输出到终端中
1111
file: false # 是否将访问日志文件记录到文件中

internal/config/type.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ type SubtitleSetting struct {
9999
type Setting struct {
100100
Port uint16 `yaml:"port"`
101101
MediaServer MediaServerSetting `yaml:"server"`
102-
Logger LoggerSetting `yaml:"logger"`
102+
Logger LoggerSetting `yaml:"log"`
103103
Cache CacheSetting `yaml:"cache"`
104104
Web WebSetting `yaml:"web"`
105105
ClientFilter ClientFilterSetting `yaml:"client"`

0 commit comments

Comments
 (0)