ClickHouse/programs/keeper
Azat Khuzhin bedf208cbd Use fmt::runtime() for LOG_* for non constexpr
Here is oneliner:

    $ gg 'LOG_\(DEBUG\|TRACE\|INFO\|TEST\|WARNING\|ERROR\|FATAL\)([^,]*, [a-zA-Z]' -- :*.cpp :*.h | cut -d: -f1 | sort -u | xargs -r sed -E -i 's#(LOG_[A-Z]*)\(([^,]*), ([A-Za-z][^,)]*)#\1(\2, fmt::runtime(\3)#'

Note, that I tried to do this with coccinelle (tool for semantic
patchin), but it cannot parse C++:

    $ cat fmt.cocci
    @@
    expression log;
    expression var;
    @@

    -LOG_DEBUG(log, var)
    +LOG_DEBUG(log, fmt::runtime(var))

I've also tried to use some macros/templates magic to do this implicitly
in logger_useful.h, but I failed to do so, and apparently it is not
possible for now.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>

v2: manual fixes
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-02-01 14:30:03 +03:00
..
clickhouse-keeper.cpp Some copy-paste 2021-05-12 13:39:07 +03:00
CMakeLists.txt Adds a better way to include binary resources 2021-06-09 14:03:30 -07:00
keeper_config.xml use session_timeout as session timeout uper bound 2021-12-30 17:18:51 +08:00
keeper_embedded.xml Fix default keeper port 2021-11-25 14:01:30 +03:00
Keeper.cpp Use fmt::runtime() for LOG_* for non constexpr 2022-02-01 14:30:03 +03:00
Keeper.h Make ContextPtr const by default. 2021-05-31 17:49:02 +03:00