mirror of
https://github.com/pissnet/pissircd.git
synced 2025-08-06 18:25:24 +01:00
Refer to FAQ entry on log block change, and some other relnotes updates.
[skip ci]
This commit is contained in:
parent
a6fa68f14a
commit
c47d64605a
2 changed files with 19 additions and 4 deletions
|
@ -11,7 +11,7 @@ geoip support and remote includes support built-in.
|
|||
Additionally, things are more customizable such as what gets sent to
|
||||
which snomask. All the +vhoaq channel modes are now modular as well,
|
||||
handy for admins who don't want or need halfops or +q/+a.
|
||||
Who gets to see what in WHOIS is also customizable in detail.
|
||||
For WHOIS it is now customizable in detail who gets to see what.
|
||||
|
||||
Breaking changes
|
||||
-----------------
|
||||
|
@ -27,7 +27,7 @@ Breaking changes
|
|||
destination {
|
||||
file "ircd.log" { maxsize 100M; }
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Enhancements
|
||||
|
@ -40,8 +40,10 @@ Enhancements
|
|||
which everyone should include from unrealircd.conf. That is, unless you
|
||||
wish to completely reconfigure which logging goes to which snomasks
|
||||
yourself, which is also an option now.
|
||||
* See ... on the new snomasks - lots of letters changed!
|
||||
* See ... on how to change your existing log { } blocks for disk logging
|
||||
* See [Snomasks](https://www.unrealircd.org/docs/Snomasks#UnrealIRCd_6)
|
||||
on the new snomasks - lots of letters changed!
|
||||
* See [FAQ: Converting log { } block](https://www.unrealircd.org/docs/FAQ#old-log-block)
|
||||
on how to change your existing log { } blocks for disk logging.
|
||||
* New support for JSON logging to disk, instead of the default text format.
|
||||
JSON logging adds lot of detail to log messages and consistently
|
||||
expands things like 'client' with properties like hostname,
|
||||
|
|
13
src/log.c
13
src/log.c
|
@ -306,6 +306,19 @@ int config_test_log(ConfigFile *conf, ConfigEntry *block)
|
|||
}
|
||||
}
|
||||
|
||||
if (!any_sources && !destinations)
|
||||
{
|
||||
unreal_log(ULOG_ERROR, "config", "CONFIG_OLD_LOG_BLOCK", NULL,
|
||||
"$config_file:$line_number: Your log block contains no sources and no destinations.\n"
|
||||
"The log block changed between UnrealIRCd 5 and UnrealIRCd 6, "
|
||||
"see https://www.unrealircd.org/docs/FAQ#old-log-block on how "
|
||||
"to convert it to the new syntax.",
|
||||
log_data_string("config_file", block->file->filename),
|
||||
log_data_integer("line_number", block->line_number));
|
||||
errors++;
|
||||
return errors;
|
||||
}
|
||||
|
||||
if (!any_sources)
|
||||
{
|
||||
config_error("%s:%d: log block contains no sources. Old log block perhaps?",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue