Skip to content

Commit

Permalink
Fix log error and example data path (#103)
Browse files Browse the repository at this point in the history
* Fix log error

* Update config version
  • Loading branch information
yixinglu authored Dec 10, 2020
1 parent 30cb255 commit f839600
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

# Output of the go coverage tool, specifically when used with LiteIDE
*.out
*.log

# macOS
.DS_Store
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ $ docker run --rm -ti \
Nebula Importer uses the YAML configuration file to store information for the CSV files and Nebula Graph server. Here's an [example](examples/example.yaml) for the configuration file and the CSV file. You can find the explanation for each option in the following:

```yaml
version: v1
version: v2
description: example
removeTempFiles: false
```
* `version`: **Required**. Indicates the configuration file version, the default value is `v1`.
* `version`: **Required**. Indicates the configuration file version, the default value is `v2`.
* `description`: **Optional**. Describes the configuration file.
* `removeTempFiles`: **Optional**. Whether to delete the temporarily generated log and error data files. The default value is `false`.
* `clientSettings`: Stores all the configurations related to the Nebula Graph service.
Expand Down
4 changes: 2 additions & 2 deletions README_zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ $ docker run --rm -ti \
Nebula Importer 通过 YAML 配置文件来描述要导入的文件信息、Nebula Graph 的 server 信息等。[这里](examples/)有一个配置文件的参考样例和对应的数据文件格式。接下来逐一解释各个选项的含义:

```yaml
version: v1
version: v2
description: example
removeTempFiles: false
```
- `version`:**必填**。表示配置文件的版本,默认值为 `v1`。
- `version`:**必填**。表示配置文件的版本,默认值为 `v2`。
- `description`:**可选**。对当前配置文件的描述信息。
- `removeTempFiles`:**可选**。是否删除生成的临时日志和错误数据文件,默认值为:`false`。
- `clientSettings`:跟 Nebula Graph 服务端相关的配置均在该字段下配置。
Expand Down
4 changes: 2 additions & 2 deletions examples/example.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: v1
version: v2
description: example
removeTempFiles: false
clientSettings:
Expand Down Expand Up @@ -270,7 +270,7 @@ files:
name: follow
withRanking: true

- path: https://raw.githubusercontent.com/vesoft-inc/nebula-importer/master/examples/follow.csv
- path: https://raw.githubusercontent.com/vesoft-inc/nebula-importer/master/examples/v2/follow.csv
failDataPath: ./err/v2/follow_http.csv
batchSize: 2
limit: 3
Expand Down
2 changes: 1 addition & 1 deletion pkg/logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func Info(v ...interface{}) {
}

func Infof(format string, v ...interface{}) {
infoWithSkip(2, fmt.Sprintf(format, fmt.Sprintf(format, v...)))
infoWithSkip(2, fmt.Sprintf(format, v...))
}

func Warn(v ...interface{}) {
Expand Down

0 comments on commit f839600

Please sign in to comment.