diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/other_tools/just_mr/TARGETS | 1 | ||||
-rw-r--r-- | src/other_tools/just_mr/main.cpp | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/other_tools/just_mr/TARGETS b/src/other_tools/just_mr/TARGETS index 5a762c3c..6706b780 100644 --- a/src/other_tools/just_mr/TARGETS +++ b/src/other_tools/just_mr/TARGETS @@ -11,6 +11,7 @@ , ["src/other_tools/ops_maps", "repo_fetch_map"] , ["src/other_tools/ops_maps", "git_update_map"] , ["src/other_tools/repo_map", "repos_to_setup_map"] + , ["@", "json", "", "json"] ] , "stage": ["src", "other_tools", "just_mr"] , "private-ldflags": diff --git a/src/other_tools/just_mr/main.cpp b/src/other_tools/just_mr/main.cpp index 84de91ad..d167c87f 100644 --- a/src/other_tools/just_mr/main.cpp +++ b/src/other_tools/just_mr/main.cpp @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include <nlohmann/json.hpp> #include <unistd.h> #include "src/buildtool/build_engine/expression/configuration.hpp" @@ -1088,8 +1089,9 @@ void DefaultReachableRepositories( cmd.emplace_back(*it); } - Logger::Log( - LogLevel::Info, "Setup finished, exec \'{}\'", fmt::join(cmd, " ")); + Logger::Log(LogLevel::Info, + "Setup finished, exec \'{}\'", + nlohmann::json(cmd).dump()); // create argv std::vector<char*> argv{}; |