Rename "log" config directive to "message-store"
This is more explicit and removes the ambiguity with error logging.
This commit is contained in:
parent
95db42e645
commit
80ed0d2a6c
@ -1,2 +1,2 @@
|
|||||||
db sqlite3 /var/lib/soju/main.db
|
db sqlite3 /var/lib/soju/main.db
|
||||||
log fs /var/lib/soju/logs/
|
message-store fs /var/lib/soju/logs/
|
||||||
|
@ -109,7 +109,7 @@ func parse(cfg scfg.Block) (*Server, error) {
|
|||||||
if err := d.ParseParams(&srv.SQLDriver, &srv.SQLSource); err != nil {
|
if err := d.ParseParams(&srv.SQLDriver, &srv.SQLSource); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
case "log":
|
case "message-store", "log":
|
||||||
var driver string
|
var driver string
|
||||||
if err := d.ParseParams(&driver, &srv.LogPath); err != nil {
|
if err := d.ParseParams(&driver, &srv.LogPath); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
@ -133,10 +133,12 @@ The following directives are supported:
|
|||||||
strings, see:
|
strings, see:
|
||||||
<https://pkg.go.dev/github.com/lib/pq#hdr-Connection_String_Parameters>.
|
<https://pkg.go.dev/github.com/lib/pq#hdr-Connection_String_Parameters>.
|
||||||
|
|
||||||
*log* fs <path>
|
*message-store* fs <path>
|
||||||
Path to the bouncer logs root directory, or empty to disable logging. By
|
Path to the bouncer logs root directory, or empty to disable logging. By
|
||||||
default, logging is disabled.
|
default, logging is disabled.
|
||||||
|
|
||||||
|
(_log_ is a deprecated alias for this directive.)
|
||||||
|
|
||||||
*http-origin* <patterns...>
|
*http-origin* <patterns...>
|
||||||
List of allowed HTTP origins for WebSocket listeners. The parameters are
|
List of allowed HTTP origins for WebSocket listeners. The parameters are
|
||||||
interpreted as shell patterns, see *glob*(7).
|
interpreted as shell patterns, see *glob*(7).
|
||||||
|
Loading…
Reference in New Issue
Block a user