Skip to content

Log file need to be created, but it is removed when cleared #5

@damienflament

Description

@damienflament

Hi,

Maybe I don't understand the usage of the xog command, but something goes strange when using it.

When running xog the first time, it complains about the non existing log file:

@ xontrib load xog
@ xog
Traceback log file doesn't exist.

So, I create it:

@ touch $XONSH_TRACEBACK_LOGFILE
@ xog

And it works.

@ raise Exception
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
Exception
@ xog
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
Exception

But when I make Xog clear the log file, it deletes it.

@ xog --clear
@ xog
Traceback log file doesn't exist.

Is it an expected behavior ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions