Skip to content
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

chore: enable stderr logging for table_meta_inspector #16865

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading