Skip to content

Commit

Permalink
Update: Warn instead of error when cgroups-v1 option is unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
muqiuhan committed Aug 29, 2023
1 parent 361e44a commit c86118e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
10 changes: 5 additions & 5 deletions build.ninja
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,31 @@ rule gen
description = regenerating ninja files

# rules for compiler
rule mm
rule as
command = /usr/bin/ccache /usr/bin/clang $ARGS -MMD -MF $out.d -o $out -c $in
deps = gcc
depfile = $out.d
description = ccache compiling.debug $in

rule cc
rule mm
command = /usr/bin/ccache /usr/bin/clang $ARGS -MMD -MF $out.d -o $out -c $in
deps = gcc
depfile = $out.d
description = ccache compiling.debug $in

rule cxx
rule mxx
command = /usr/bin/ccache /usr/bin/clang $ARGS -MMD -MF $out.d -o $out -c $in
deps = gcc
depfile = $out.d
description = ccache compiling.debug $in

rule as
rule cxx
command = /usr/bin/ccache /usr/bin/clang $ARGS -MMD -MF $out.d -o $out -c $in
deps = gcc
depfile = $out.d
description = ccache compiling.debug $in

rule mxx
rule cc
command = /usr/bin/ccache /usr/bin/clang $ARGS -MMD -MF $out.d -o $out -c $in
deps = gcc
depfile = $out.d
Expand Down
5 changes: 3 additions & 2 deletions src/resource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@ namespace bonding::resource
return Ok(Void());
}
else
return ERR_MSG(error::Code::Cgroups,
"Controller " + cgroup.control + " is not support");
spdlog::warn("Controller {} is not support!!", cgroup.control);

return Ok(Void());
}

Result<Void, error::Err>
Expand Down

0 comments on commit c86118e

Please sign in to comment.