Commit 9e87e4bb authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Remove extra logging options

One default: ~/.kamaki.log
User can use a custom: kamaki config set log_file <custom log file>
parent bfb54881
......@@ -121,7 +121,7 @@ The [global] group is treated by kamaki as a generic group for arbitrary options
* global.token <user authentication token>
* global.log_file <logfile full path>
set a custom location for kamaki logging. Default values are ~/.kamaki.log, /tmp/kamaki.log and ./kamaki.log (in that order)
set a custom location for kamaki logging. Default value is ~/.kamaki.log
* global.log_token <on|off>
allow kamaki to log user tokens
......@@ -175,9 +175,7 @@ Kamaki log file path is set by the following command::
$ kamaki config set log_file <logfile path>
By default, kamaki keeps a list of possible logfile locations::
~/.kamaki.log, /tmp/kamaki.log, ./kamaki.log
By default, kamaki logs at ~/.kamaki.log
When initialized, kamaki attempts to open one of these locations for writing, in the order presented above and uses the first accessible for appending logs. If the log_file option is set, kamaki prepends the value of this option to the logfile list, so the custom location will be the first one kamaki will attetmpt to log at.
......@@ -32,10 +32,11 @@
# or implied, of GRNET S.A.
from os import chmod
from os.path import expanduser
import logging
LOG_FILE = ['kamaki.log', '/tmp/kamaki.log']
LOG_FILE = [expanduser('~/.kamaki.log')]
def get_log_filename():
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment