From: Vladimír Čunát Date: Tue, 26 Apr 2022 12:55:12 +0000 (+0200) Subject: daemon/lua nit: sort RR rank names in debug logs X-Git-Tag: v5.5.1~13^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb77f9eb3358f9fcb35821e09128a99485f61b42;p=thirdparty%2Fknot-resolver.git daemon/lua nit: sort RR rank names in debug logs I was diffing logs from different runs and got annoyed by the shuffles. --- diff --git a/daemon/lua/kres.lua b/daemon/lua/kres.lua index 84198be41..3d4e7ced2 100644 --- a/daemon/lua/kres.lua +++ b/daemon/lua/kres.lua @@ -970,6 +970,7 @@ local function rank_tostring(rank) table.insert(names, string.lower(name)) end end + table.sort(names) -- pairs() above doesn't give a stable ordering return string.format('0%.2o (%s)', rank, table.concat(names, ' ')) end