-
Notifications
You must be signed in to change notification settings - Fork 189
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
Save log files to the query history directory #1178
Conversation
@edoardopirovano, @angelapwen, the changes here should make it easier to store structured logs in each query history folder. I would have done it myself, but I wasn't sure how to specify a different log file per query. |
4303608
to
3b6021b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for tidying this up! A few very small optional comments, but I think this looks good 👍🏽
(Once tests pass!)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In addition Shati's comments, a minor typo I spotted.
@@ -68,7 +66,7 @@ export class QueryServerClient extends DisposableObject { | |||
this.queryServerStartListeners.push(e); | |||
} | |||
|
|||
public activeQueryName: string | undefined; | |||
public activeQueryLogFIle: string | undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: FIle
-> File
This commit deprecates the the cutsom log directory option by saving all log files with query history. There is a simplification of the `OutputChannelLogger` since it no longer needs to manage deleting log files on exit. Also, the `codeQL.runningQueries.customLogDirectory` is marked as deprecated. If this value is being used, a warning message is popped up after the query completes.
b4f63e8
to
b2b8625
Compare
b2b8625
to
f28c1f9
Compare
Allows users to explore the contents and all artifacts of the query that was just run.
Add new command to open the query history directory
This commit deprecates the the cutsom log directory option by saving
all log files with query history.
There is a simplification of the
OutputChannelLogger
since it nolonger needs to manage deleting log files on exit.
Also, the
codeQL.runningQueries.customLogDirectory
is marked asdeprecated. If this value is being used, a warning message is popped
up after the query completes.
Fixes #1174
Checklist
ready-for-doc-review
label there.