projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ofp-errors: Rename "OF" to "OF1.0+", "NX" to "NX1.0+".
[openvswitch]
/
python
/
ovs
/
fatal_signal.py
diff --git
a/python/ovs/fatal_signal.py
b/python/ovs/fatal_signal.py
index f2edc8598aba8d50ab898cd475d75b01f45712e8..dd989a09740ab81ab28befce4dbc5055681992be 100644
(file)
--- a/
python/ovs/fatal_signal.py
+++ b/
python/ovs/fatal_signal.py
@@
-13,11
+13,13
@@
# limitations under the License.
import atexit
# limitations under the License.
import atexit
-import logging
import os
import signal
import os
import signal
+import ovs.vlog
+
_hooks = []
_hooks = []
+vlog = ovs.vlog.Vlog("fatal-signal")
def add_hook(hook, cancel, run_at_exit):
def add_hook(hook, cancel, run_at_exit):
@@
-67,8
+69,7
@@
def unlink_file_now(file):
Returns 0 if successful, otherwise a positive errno value."""
error = _unlink(file)
if error:
Returns 0 if successful, otherwise a positive errno value."""
error = _unlink(file)
if error:
- logging.warning("could not unlink \"%s\" (%s)"
- % (file, os.strerror(error)))
+ vlog.warn("could not unlink \"%s\" (%s)" % (file, os.strerror(error)))
remove_file_to_unlink(file)
return error
remove_file_to_unlink(file)
return error