_get_log_file_path explictly return, when logfile/logdire unset

Add an explicit 'return None'

Change-Id: I85176b9ba6334d694c8a71901ad358f487d6bc88
This commit is contained in:
DennyZhang
2013-09-30 08:44:46 -05:00
parent 561b6ca75e
commit 1442ece45f

View File

@@ -207,6 +207,8 @@ def _get_log_file_path(binary=None):
binary = binary or _get_binary_name()
return '%s.log' % (os.path.join(logdir, binary),)
return None
class BaseLoggerAdapter(logging.LoggerAdapter):