mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-28 00:23:00 +00:00
fix(storage-scrubber): log version after initialize the logger (#9049)
When I checked the log in Grafana I couldn't find the scrubber version. Then I realized that it should be logged after the logger gets initialized. ## Summary of changes Log after initializing the logger for the scrubber. Signed-off-by: Alex Chi Z <chi@neon.tech>
This commit is contained in:
@@ -121,8 +121,6 @@ enum Command {
|
|||||||
async fn main() -> anyhow::Result<()> {
|
async fn main() -> anyhow::Result<()> {
|
||||||
let cli = Cli::parse();
|
let cli = Cli::parse();
|
||||||
|
|
||||||
tracing::info!("version: {}, build_tag {}", GIT_VERSION, BUILD_TAG);
|
|
||||||
|
|
||||||
let bucket_config = BucketConfig::from_env()?;
|
let bucket_config = BucketConfig::from_env()?;
|
||||||
|
|
||||||
let command_log_name = match &cli.command {
|
let command_log_name = match &cli.command {
|
||||||
@@ -142,6 +140,8 @@ async fn main() -> anyhow::Result<()> {
|
|||||||
chrono::Utc::now().format("%Y_%m_%d__%H_%M_%S")
|
chrono::Utc::now().format("%Y_%m_%d__%H_%M_%S")
|
||||||
));
|
));
|
||||||
|
|
||||||
|
tracing::info!("version: {}, build_tag {}", GIT_VERSION, BUILD_TAG);
|
||||||
|
|
||||||
let controller_client = cli.controller_api.map(|controller_api| {
|
let controller_client = cli.controller_api.map(|controller_api| {
|
||||||
ControllerClientConfig {
|
ControllerClientConfig {
|
||||||
controller_api,
|
controller_api,
|
||||||
|
|||||||
Reference in New Issue
Block a user