diff options
| author | JP Dillingham <jp@dillingham.me> | 2024-06-18 07:50:58 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-18 07:50:58 -0500 |
| commit | 6d8aa0fcb9cbfe22309139fe9e8b9f86027352e8 (patch) | |
| tree | 5a9fc027f35af593fb5c1168bfbeaeec24acdaf3 /src/slskd/Core | |
| parent | 6e77c4f214c9d8a258c1e39c465cc63fc1912850 (diff) | |
| parent | 2c45386bfa4ad1a8a9dd5cf5793ee895ec0aeeaa (diff) | |
| download | slskd-6d8aa0fcb9cbfe22309139fe9e8b9f86027352e8.tar.gz | |
Merge branch 'colors' into feat/config-console-log-colour
Diffstat (limited to 'src/slskd/Core')
| -rw-r--r-- | src/slskd/Core/Blacklist.cs | 6 | ||||
| -rw-r--r-- | src/slskd/Core/Metrics.cs | 2 | ||||
| -rw-r--r-- | src/slskd/Core/Options.cs | 10 |
3 files changed, 9 insertions, 9 deletions
diff --git a/src/slskd/Core/Blacklist.cs b/src/slskd/Core/Blacklist.cs index 76f0b37f..84e6feb6 100644 --- a/src/slskd/Core/Blacklist.cs +++ b/src/slskd/Core/Blacklist.cs @@ -179,7 +179,7 @@ public class Blacklist { if (format == BlacklistFormat.AutoDetect) { - Log.Debug("Attempting to auto-detect blacklist fomat from contents..."); + Log.Debug("Attempting to auto-detect blacklist format from contents..."); format = await DetectFormat(filename); // FormatException if unsuccessful Log.Debug("Detected blacklist format {Format}", format); } @@ -294,7 +294,7 @@ public class Blacklist } /// <summary> - /// Returns a value indicating whether the specified <paramref name="ip"/> is contained witin the blacklist. + /// Returns a value indicating whether the specified <paramref name="ip"/> is contained within the blacklist. /// </summary> /// <param name="ip">The IP address to check.</param> /// <returns>A value indicating whether the specified IP is contained within the blacklist.</returns> @@ -310,7 +310,7 @@ public class Blacklist return false; } - // conver the entire IP to a uint + // convert the entire IP to a uint var ipAsUint32 = ToUint32(ip); // check the list for this octet sequentially until the first match diff --git a/src/slskd/Core/Metrics.cs b/src/slskd/Core/Metrics.cs index b11d9d8f..7e0b0f6e 100644 --- a/src/slskd/Core/Metrics.cs +++ b/src/slskd/Core/Metrics.cs @@ -123,7 +123,7 @@ namespace slskd public static Gauge BranchLevel { get; } = Prometheus.Metrics.CreateGauge("slskd_dnet_branch_level", "Current distributed branch level"); /// <summary> - /// Gets a gauge representing the most recent average time tekn to broadcast incoming search requests to connected children. + /// Gets a gauge representing the most recent average time taken to broadcast incoming search requests to connected children. /// </summary> public static Gauge CurrentBroadcastLatency { get; } = Prometheus.Metrics.CreateGauge("slskd_dnet_broadcast_latency_current", "The average time taken to broadcast incoming search requests to connected children"); diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index a8c3b029..8aa915fc 100644 --- a/src/slskd/Core/Options.cs +++ b/src/slskd/Core/Options.cs @@ -744,7 +744,7 @@ namespace slskd bool IsBlankPath(string share) => Regex.IsMatch(share.LocalizePath(), @"^(!|-){0,1}(\[.*\])$"); directories?.Where(share => IsBlankPath(share)).ToList() - .ForEach(blank => results.Add(new ValidationResult($"Share {blank} doees not specify a path"))); + .ForEach(blank => results.Add(new ValidationResult($"Share {blank} does not specify a path"))); bool IsRootMount(string share) => Regex.IsMatch(share.LocalizePath(), @"^(!|-){0,1}(\[.*\])/$"); directories?.Where(share => IsRootMount(share)).ToList() @@ -1289,11 +1289,11 @@ namespace slskd /// <summary> /// Gets a value indicating whether to write logs to disk. /// </summary> - [Argument(default, "no-disk-logger")] - [EnvironmentVariable("NO_DISK_LOGGER")] - [Description("disable logging to disk")] + [Argument(default, "disk-logger")] + [EnvironmentVariable("DISK_LOGGER")] + [Description("enable logging to disk")] [RequiresRestart] - public bool Disk { get; init; } = true; + public bool Disk { get; init; } = false; /// <summary> /// Gets a value indicating whether console logs should be colorized. |
