mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-30 02:28:53 +00:00
Merge pull request #1762 from peakyDicers/firewall-logs-remove-emoji
Removed fire emoji from firewall logs.
This commit is contained in:
commit
61b07c8cb8
@ -21,7 +21,6 @@ export const initialised = (async () => {
|
|||||||
})();
|
})();
|
||||||
|
|
||||||
const BALENA_FIREWALL_CHAIN = 'BALENA-FIREWALL';
|
const BALENA_FIREWALL_CHAIN = 'BALENA-FIREWALL';
|
||||||
const LOG_PREFIX = '🔥';
|
|
||||||
|
|
||||||
const prepareChain: iptables.Rule[] = [
|
const prepareChain: iptables.Rule[] = [
|
||||||
{
|
{
|
||||||
@ -155,7 +154,7 @@ export async function applyFirewallMode(mode: string) {
|
|||||||
mode = 'off';
|
mode = 'off';
|
||||||
}
|
}
|
||||||
|
|
||||||
log.info(`${LOG_PREFIX} Applying firewall mode: ${mode}`);
|
log.info(`Applying firewall mode: ${mode}`);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// are we running services in host-network mode?
|
// are we running services in host-network mode?
|
||||||
@ -206,10 +205,10 @@ export async function applyFirewallMode(mode: string) {
|
|||||||
.apply(ruleAdaptor);
|
.apply(ruleAdaptor);
|
||||||
|
|
||||||
// all done!
|
// all done!
|
||||||
log.success(`${LOG_PREFIX} Firewall mode applied`);
|
log.success(`Firewall mode applied`);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
logSystemMessage(`${LOG_PREFIX} Firewall mode not applied due to error`);
|
logSystemMessage(`Firewall mode not applied due to error`);
|
||||||
log.error(`${LOG_PREFIX} Firewall mode not applied`);
|
log.error(`Firewall mode not applied`);
|
||||||
log.error('Error applying firewall mode', err);
|
log.error('Error applying firewall mode', err);
|
||||||
|
|
||||||
if (err instanceof iptables.IPTablesRuleError) {
|
if (err instanceof iptables.IPTablesRuleError) {
|
||||||
|
Loading…
Reference in New Issue
Block a user