Skip to content

Commit

Permalink
chore: enable stderr logging for table_meta_inspector (#16865)
Browse files Browse the repository at this point in the history
  • Loading branch information
dantengsky authored Nov 19, 2024
1 parent 357404c commit aac6e09
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/binaries/tool/table_meta_inspector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

use std::collections::BTreeMap;
use std::env;
use std::fs::File;
use std::io;
Expand All @@ -27,6 +28,8 @@ use databend_common_config::DATABEND_COMMIT_VERSION;
use databend_common_exception::Result;
use databend_common_storage::init_operator;
use databend_common_storage::StorageConfig;
use databend_common_tracing::init_logging;
use databend_common_tracing::Config as LogConfig;
use databend_query::GlobalServices;
use databend_storages_common_table_meta::meta::SegmentInfo;
use databend_storages_common_table_meta::meta::TableSnapshot;
Expand Down Expand Up @@ -121,6 +124,10 @@ async fn run(config: &InspectorConfig) -> Result<()> {

#[tokio::main]
async fn main() -> Result<()> {
let mut log_config = LogConfig::default();
log_config.stderr.on = true;
let _guards = init_logging("table_meta_inspector", &log_config, BTreeMap::new());

let config = InspectorConfig::parse();

if let Err(err) = run(&config).await {
Expand Down

0 comments on commit aac6e09

Please sign in to comment.