Verified Commit 755ffd5f authored by Alberto Miranda's avatar Alberto Miranda ♨️
Browse files

[logging] Add missing quotes in adhoc/pfs names

parent 79a38579
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -234,7 +234,7 @@ register_adhoc_storage(const server& srv, const std::string& name,

        LOGGER_INFO("rpc {:<} body: {{name: {}, type: {}, adhoc_ctx: {}, "
                    "adhoc_resources: {}}}",
                    rpc, name, type, ctx, resources);
                    rpc, std::quoted(name), type, ctx, resources);

        if(const auto& call_rv =
                   endp.call(rpc.name(), name, type, ctx, resources);
@@ -336,7 +336,7 @@ register_pfs_storage(const server& srv, const std::string& name,
        const auto& endp = lookup_rv.value();

        LOGGER_INFO("rpc {:<} body: {{name: {}, type: {}, pfs_ctx: {}}}", rpc,
                    name, type, ctx);
                    std::quoted(name), type, ctx);

        if(const auto& call_rv = endp.call(rpc.name(), name, type, ctx);
           call_rv.has_value()) {
+3 −3
Original line number Diff line number Diff line
@@ -276,7 +276,7 @@ rpc_server::register_adhoc_storage(

    LOGGER_INFO("rpc {:>} body: {{name: {}, type: {}, adhoc_ctx: {}, "
                "adhoc_resources: {}}}",
                rpc, name, type, ctx, resources);
                rpc, std::quoted(name), type, ctx, resources);

    scord::error_code ec;
    std::optional<std::uint64_t> adhoc_id;
@@ -518,8 +518,8 @@ rpc_server::register_pfs_storage(const network::request& req,

    const auto rpc = rpc_info::create(RPC_NAME(), get_address(req));

    LOGGER_INFO("rpc {:>} body: {{name: {}, type: {}, pfs_ctx: {}}}", rpc, name,
                type, ctx);
    LOGGER_INFO("rpc {:>} body: {{name: {}, type: {}, pfs_ctx: {}}}", rpc,
                std::quoted(name), type, ctx);

    scord::error_code ec;
    std::optional<std::uint64_t> pfs_id = 0;