Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sebastian Schüpbach
Metrics Client
Commits
5bb75df7
Verified
Commit
5bb75df7
authored
Aug 24, 2021
by
Sebastian Schüpbach
Browse files
log when client successfully created
parent
8efd5d8f
Pipeline
#31684
passed with stages
in 11 minutes and 55 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main.rs
View file @
5bb75df7
...
...
@@ -159,6 +159,8 @@ async fn main() -> Result<()> {
if
let
Err
(
e
)
=
client
{
error!
(
"{}"
,
e
);
bail!
(
"Abort"
);
}
else
{
info!
(
"Client ok"
)
}
let
pods
:
Api
<
Pod
>
=
Api
::
namespaced
(
client
.unwrap
(),
namespace
);
...
...
@@ -172,7 +174,7 @@ async fn main() -> Result<()> {
pod
.metadata.name
.expect
(
"No pod name available"
)
);
}
debug!
(
"Sleeping for {} minute/s"
,
update_interval
);
std
::
thread
::
sleep
(
Duration
::
from_secs
(
update_interval
*
60
));
//
debug!("Sleeping for {} minute/s", update_interval);
//
std::thread::sleep(Duration::from_secs(update_interval * 60));
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment