首页 > 解决方案 > 我想知道cassy的错误日志在哪里输出

问题描述

当我在我的项目中运行命令 cassy 时,它失败了。想知道失败的原因,但是不知道在哪里输出错误日志。

我想知道在哪里或如何定义 cassy 错误日志的输出位置。

这是 cassy 命令失败时的日志。

$ grpcurl -plaintext -d '{"snapshot_id": "7bdb9aa0-79b7-4cd3-8e08-a400433740ec", "restore_type": 2, "cluster_id": "ScalarDL-b729c0d4-4e72-4e3a-9b1a-02ea3c05120c"}' cassy-1.project:20051 rpc.Cassy.RestoreBackup
{
  "status": "STARTED",
  "cluster_id": "ScalarDL-b729c0d4-4e72-4e3a-9b1a-02ea3c05120c",
  "target_ips": [
    "10.111.2.169",
    "10.111.2.89",
    "10.111.2.38"
  ],
  "snapshot_id": "7bdb9aa0-79b7-4cd3-8e08-a400433740ec",
  "restore_type": 2
}


$ grpcurl -plaintext -d '{"limit": 6, "cluster_id": "ScalarDL-b729c0d4-4e72-4e3a-9b1a-02ea3c05120c"}' cassy-1.staging.sidb.internal:20051 rpc.Cassy.ListRestoreStatuses
{
  "cluster_id": "ScalarDL-b729c0d4-4e72-4e3a-9b1a-02ea3c05120c",
  "entries": [
    {
      "target_ip": "10.111.2.169",
      "snapshot_id": "7bdb9aa0-79b7-4cd3-8e08-a400433740ec",
      "created_at": "1630382600714",
      "updated_at": "1630382621288",
      "restore_type": 2,
      "status": "FAILED"
    },
    {
      "target_ip": "10.111.2.38",
      "snapshot_id": "7bdb9aa0-79b7-4cd3-8e08-a400433740ec",
      "created_at": "1630382600714",
      "updated_at": "1630382604445",
      "restore_type": 2,
      "status": "FAILED"
    },
    {
      "target_ip": "10.111.2.89",
      "snapshot_id": "7bdb9aa0-79b7-4cd3-8e08-a400433740ec",
      "created_at": "1630382600714",
      "updated_at": "1630382618413",
      "restore_type": 2,
      "status": "FAILED"
    }
  ]
}

标签: scalardbcassy

解决方案


推荐阅读