Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restrict log file creation to 'vast start' #803

Merged
merged 2 commits into from
Mar 24, 2020
Merged

Restrict log file creation to 'vast start' #803

merged 2 commits into from
Mar 24, 2020

Conversation

lava
Copy link
Member

@lava lava commented Mar 24, 2020

Set file verbosity to 'quiet' by default, and do not create a log file and log directory when file verbosity is set to 'quiet'.

Set file verbosity to 'debug' by default only for the 'vast start' subcommand.

libvast/src/command.cpp Outdated Show resolved Hide resolved
Copy link
Member

@dominiklohmann dominiklohmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not yet seem to handle vast -N, does it? Haven't tested yet, just had a glance at the code.

@lava
Copy link
Member Author

lava commented Mar 24, 2020

This does not yet seem to handle vast -N, does it? Haven't tested yet, just had a glance at the code.

Yes, by design: The overall goal was that commands issued by the user in his terminal should not pollute the current working directory by creating a vast log directory, which would include vast -N. Do you think we should add an exception for vast -N?

@dominiklohmann
Copy link
Member

Do you think we should add an exception for vast -N?

Yes, since it is basically running vast start under the hood.

@lava lava force-pushed the story/ch13090 branch 2 times, most recently from 4b26fe5 to 35ad34a Compare March 24, 2020 13:11
Copy link
Member

@dominiklohmann dominiklohmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be working nicely. Just a few small things I've noticed.

CHANGELOG.md Outdated Show resolved Hide resolved
libvast/src/command.cpp Outdated Show resolved Hide resolved
libvast/src/command.cpp Outdated Show resolved Hide resolved
@lava
Copy link
Member Author

lava commented Mar 24, 2020

I added a commit addressing ch13324 into this PR as well, since both stories are closely related to the logging behaviour of caf and touch the same code anyways.

vast.conf Outdated Show resolved Hide resolved
Set file verbosity to 'quiet' by default, and do not
create a log file and log directory when file verbosity
is set to 'quiet'.

Set file verbosity to 'debug' by default only for
the 'vast start' subcommand.
The config options 'vast.log-directory' was deprecated
and replaced by 'vast.log-file'. If specified, all log
files will be written to the specified file.
@lava lava merged commit e183d94 into master Mar 24, 2020
@lava lava deleted the story/ch13090 branch March 24, 2020 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants