mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 20:18:22 +02:00
Iptables updated errors messages #2348
This commit is contained in:
parent
f56894d973
commit
fc4fd92467
1 changed files with 3 additions and 3 deletions
|
@ -7,11 +7,11 @@ module Iptable
|
||||||
f.puts "+#{ip}"
|
f.puts "+#{ip}"
|
||||||
end
|
end
|
||||||
rescue Errno::ENOENT => e
|
rescue Errno::ENOENT => e
|
||||||
logger.error "ERROR: cannot open #{counter_proc}: #{e}"
|
logger.error "IPTABLES COUNTER UPDATE: cannot open #{counter_proc}: #{e}"
|
||||||
rescue Errno::EACCES => e
|
rescue Errno::EACCES => e
|
||||||
logger.error "ERROR: no permission #{counter_proc}: #{e}"
|
logger.error "IPTABLES COUNTER UPDATE: no permission #{counter_proc}: #{e}"
|
||||||
rescue IOError => e
|
rescue IOError => e
|
||||||
logger.error "ERROR: cannot write #{ip} to #{counter_proc}: #{e}"
|
logger.error "IPTABLES COUNTER UPDATE: cannot write #{ip} to #{counter_proc}: #{e}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue