diff options
author | Jan Macku <jamacku@redhat.com> | 2020-11-05 14:51:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-05 14:51:33 +0100 |
commit | 7d876f7ac28151d754aafbe5d008c9a4b574e211 (patch) | |
tree | ca331d9fe4cf801c984c2cea3a6725e6ed480199 /network-scripts/ifup | |
parent | 9b0651b14849046303cd635648212d6ba8dc619f (diff) | |
download | initscripts-7d876f7ac28151d754aafbe5d008c9a4b574e211.tar initscripts-7d876f7ac28151d754aafbe5d008c9a4b574e211.tar.gz initscripts-7d876f7ac28151d754aafbe5d008c9a4b574e211.tar.bz2 initscripts-7d876f7ac28151d754aafbe5d008c9a4b574e211.tar.xz initscripts-7d876f7ac28151d754aafbe5d008c9a4b574e211.zip |
network-scripts: Use net_log() instead of logger
Use internal network-scripts function net_log() instead of
/usr/bin/logger if possible to make code more consistent and cleaner.
Diffstat (limited to 'network-scripts/ifup')
-rwxr-xr-x | network-scripts/ifup | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/network-scripts/ifup b/network-scripts/ifup index 2c6d27ca..8ad78ef0 100755 --- a/network-scripts/ifup +++ b/network-scripts/ifup @@ -134,9 +134,7 @@ if is_true "${VLAN}" && is_false "$ISALIAS" && [ -n "$DEVICE" ]; then fi ip link add dev ${DEVICE} link ${PHYSDEV} type vlan id ${VID} ${FLAG_REORDER_HDR} ${FLAG_GVRP} || { - (/usr/bin/logger -p daemon.info -t ifup \ - $"ERROR: could not add vlan ${VID} as ${DEVICE} on dev ${PHYSDEV}" &) & - net_log $"ERROR: could not add vlan ${VID} as ${DEVICE} on dev ${PHYSDEV}" + net_log $"ERROR: could not add vlan ${VID} as ${DEVICE} on dev ${PHYSDEV}" info ifup exit 1 } |