21 lines
1.4 KiB
Diff
21 lines
1.4 KiB
Diff
|
# By default, create log files in current directory, instead of the script directory.
|
||
|
--- ../original/py-kms/pykms_Client.py
|
||
|
+++ py-kms/pykms_Client.py
|
||
|
@@ -48,5 +48,5 @@
|
||
|
'choi' : ["CRITICAL", "ERROR", "WARNING", "INFO", "DEBUG", "MINI"]},
|
||
|
'lfile' : {'help' : 'Use this option to set an output log file. The default is \"pykms_logclient.log\" or type \"STDOUT\" to view log info on stdout.',
|
||
|
- 'def' : os.path.dirname(os.path.abspath( __file__ )) + "/pykms_logclient.log", 'des' : "logfile"},
|
||
|
+ 'def' : "pykms_logclient.log", 'des' : "logfile"},
|
||
|
'lsize' : {'help' : 'Use this flag to set a maximum size (in MB) to the output log file. Desactivated by default.', 'def' : 0, 'des': "logsize"},
|
||
|
}
|
||
|
--- ../original/py-kms/pykms_Server.py
|
||
|
+++ py-kms/pykms_Server.py
|
||
|
@@ -85,5 +85,5 @@
|
||
|
'choi' : ["CRITICAL", "ERROR", "WARNING", "INFO", "DEBUG", "MINI"]},
|
||
|
'lfile' : {'help' : 'Use this option to set or not an output log file. The default is \"pykms_logserver.log\" or type \"STDOUT\" to view log info on stdout.',
|
||
|
- 'def' : os.path.dirname(os.path.abspath( __file__ )) + "/pykms_logserver.log", 'des' : "logfile"},
|
||
|
+ 'def' : "pykms_logserver.log", 'des' : "logfile"},
|
||
|
'lsize' : {'help' : 'Use this flag to set a maximum size (in MB) to the output log file. Desactivated by default.', 'def' : 0, 'des': "logsize"},
|
||
|
}
|
||
|
'');
|