mirror of
https://github.com/xcat2/confluent.git
synced 2026-01-11 02:22:31 +00:00
Merge pull request #198 from henglikuang/logdirectory
An effort was made at one point to have log directory configurable, but no way was actually done to make it accessible. This corrects that.
This commit is contained in:
@@ -94,6 +94,7 @@ def _daemonize():
|
||||
|
||||
def _redirectoutput():
|
||||
os.umask(63)
|
||||
configmanager.set_global('logdirectory', _get_logdirectory())
|
||||
sys.stdout = log.Logger('stdout', buffered=False)
|
||||
sys.stderr = log.Logger('stderr', buffered=False)
|
||||
|
||||
@@ -340,3 +341,6 @@ def _get_connector_config(session):
|
||||
host = conf.get_option(session, 'bindhost')
|
||||
port = conf.get_int_option(session, 'bindport')
|
||||
return (host, port)
|
||||
|
||||
def _get_logdirectory():
|
||||
return conf.get_option('globals', 'logdirectory')
|
||||
Reference in New Issue
Block a user