From 80ed0d2a6c64fcac64bd5d8ab2ba82dfd9dcf4c0 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 9 May 2022 16:41:41 +0200 Subject: [PATCH] Rename "log" config directive to "message-store" This is more explicit and removes the ambiguity with error logging. --- config.in | 2 +- config/config.go | 2 +- doc/soju.1.scd | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/config.in b/config.in index a0b510e..78bbc66 100644 --- a/config.in +++ b/config.in @@ -1,2 +1,2 @@ db sqlite3 /var/lib/soju/main.db -log fs /var/lib/soju/logs/ +message-store fs /var/lib/soju/logs/ diff --git a/config/config.go b/config/config.go index 07b7124..2705942 100644 --- a/config/config.go +++ b/config/config.go @@ -109,7 +109,7 @@ func parse(cfg scfg.Block) (*Server, error) { if err := d.ParseParams(&srv.SQLDriver, &srv.SQLSource); err != nil { return nil, err } - case "log": + case "message-store", "log": var driver string if err := d.ParseParams(&driver, &srv.LogPath); err != nil { return nil, err diff --git a/doc/soju.1.scd b/doc/soju.1.scd index 68b19fe..1f3c527 100644 --- a/doc/soju.1.scd +++ b/doc/soju.1.scd @@ -133,10 +133,12 @@ The following directives are supported: strings, see: . -*log* fs +*message-store* fs Path to the bouncer logs root directory, or empty to disable logging. By default, logging is disabled. + (_log_ is a deprecated alias for this directive.) + *http-origin* List of allowed HTTP origins for WebSocket listeners. The parameters are interpreted as shell patterns, see *glob*(7).