scalardb - 我想知道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"
}
]
}
解决方案
推荐阅读
- python - Python:在日期列表中,如何删除属于连续三天或更长时间范围的日期?
- python - 如何在 2 个不同帐户 S3 存储桶之间复制特定文件
- java - Java 面试题:在 O(log(n)) 时间内通过两个字段获取条目
- php - 使用 ajax 提交表单时刷新 csrf 令牌是个好主意吗?
- c# - 使用对象初始化器实例化类
- python - 使用 C 扩展模块运行 tox
- c# - C# - 查找和替换文件中的特定字符串
- git - 有没有办法使用 TortoiseGit 初始化远程 git 存储库?
- ios - 无法在 iOS 中使用 UIActivityViewController 通过 Twitter 发布视频
- javascript - 递归过滤布尔键的数据