X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=python%2Fovs%2Ffatal_signal.py;h=e6fe78386ed455fb87715e103aefcbb2db4288c3;hb=9d2e744579e5f3c4e0f65cf4ba5e8cfeab91fed5;hp=f2edc8598aba8d50ab898cd475d75b01f45712e8;hpb=26bb0f31299d3f8eb06551d6a219846929c27149;p=openvswitch diff --git a/python/ovs/fatal_signal.py b/python/ovs/fatal_signal.py index f2edc859..e6fe7838 100644 --- a/python/ovs/fatal_signal.py +++ b/python/ovs/fatal_signal.py @@ -1,4 +1,4 @@ -# Copyright (c) 2010, 2011 Nicira Networks +# Copyright (c) 2010, 2011 Nicira, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -13,11 +13,13 @@ # limitations under the License. import atexit -import logging import os import signal +import ovs.vlog + _hooks = [] +vlog = ovs.vlog.Vlog("fatal-signal") 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: - 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