Just put the error log in the current working directory.
This commit is contained in:
parent
ec2383a529
commit
22611b6444
1 changed files with 4 additions and 1 deletions
5
vigil
5
vigil
|
|
@ -63,9 +63,12 @@ import termstr
|
|||
import tools
|
||||
|
||||
|
||||
_CWD = os.getcwd()
|
||||
|
||||
|
||||
def _log_error(message=None):
|
||||
message = traceback.format_exc() if message is None else message + "\n"
|
||||
with open("/home/ahamilton/vigil.log", "a") as log_file:
|
||||
with open(os.path.join(_CWD, "vigil.log"), "a") as log_file:
|
||||
log_file.write(message)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue