Use stored sessions for logs and artifacts
Source commit: 8faa1e3b54e5474bc31b53a3b308b6f8198b6310
This commit is contained in:
parent
4bfb0e6ea0
commit
47f13f7598
4 changed files with 44 additions and 7 deletions
|
|
@ -3,6 +3,7 @@ use serde_json::{json, Value};
|
|||
|
||||
use crate::client::list_task_events_if_available_with_session;
|
||||
use crate::config::StoredCliSession;
|
||||
use crate::process::hydrate_process_scope;
|
||||
use crate::process_events::log_entries;
|
||||
use crate::LogsArgs;
|
||||
|
||||
|
|
@ -12,9 +13,10 @@ pub(crate) fn logs_report(args: LogsArgs) -> Result<Value> {
|
|||
}
|
||||
|
||||
pub(crate) fn logs_report_with_session(
|
||||
args: LogsArgs,
|
||||
mut args: LogsArgs,
|
||||
stored_session: Option<&StoredCliSession>,
|
||||
) -> Result<Value> {
|
||||
hydrate_process_scope(&mut args.scope, stored_session);
|
||||
let events = list_task_events_if_available_with_session(
|
||||
args.scope.coordinator.as_deref(),
|
||||
&args.scope,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue