More clear log #638

Merged
oherych merged 1 commits from patch-1 into master 2017-07-11 01:16:08 +00:00
oherych commented 2017-07-10 15:41:07 +00:00 (Migrated from github.com)

I don't see nil and empty strings in log. I suggest the next changes

Before

INSERT INTO `dish` (`dish_id`,`restaurant_id`,`name`,`source`,`entry_id`,`created_by`,`menu_id`,`category`,`description`,`price`,`score`,`flog_count`,`approve`,`activated`,`created_at`,`updatated_at`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [59639fb56d9d9437b707a434 58a313719fee7b336da70c45 Chocolate Mousse Torte fsqi 51339970   Dessert Seasonal berry sauce 0 0 0 1 false 2017-07-10 18:39:33 2017-07-10 18:39:33]

After

INSERT INTO `dish` (`dish_id`,`restaurant_id`,`name`,`source`,`entry_id`,`created_by`,`menu_id`,`category`,`description`,`price`,`score`,`flog_count`,`approve`,`activated`,`created_at`,`updatated_at`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) []interface {}{"59639ec16d9d943782ce2f6c", "58a313719fee7b336da70c45", "Chocolate Mousse Torte", "fsqi", "51339970", "", "", "Dessert", "Seasonal berry sauce", 0, 0, 0, 1, false, "2017-07-10 18:35:29", "2017-07-10 18:35:29"}
I don't see `nil` and empty strings in log. I suggest the next changes **Before** ``` INSERT INTO `dish` (`dish_id`,`restaurant_id`,`name`,`source`,`entry_id`,`created_by`,`menu_id`,`category`,`description`,`price`,`score`,`flog_count`,`approve`,`activated`,`created_at`,`updatated_at`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [59639fb56d9d9437b707a434 58a313719fee7b336da70c45 Chocolate Mousse Torte fsqi 51339970 Dessert Seasonal berry sauce 0 0 0 1 false 2017-07-10 18:39:33 2017-07-10 18:39:33] ``` **After** ``` INSERT INTO `dish` (`dish_id`,`restaurant_id`,`name`,`source`,`entry_id`,`created_by`,`menu_id`,`category`,`description`,`price`,`score`,`flog_count`,`approve`,`activated`,`created_at`,`updatated_at`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) []interface {}{"59639ec16d9d943782ce2f6c", "58a313719fee7b336da70c45", "Chocolate Mousse Torte", "fsqi", "51339970", "", "", "Dessert", "Seasonal berry sauce", 0, 0, 0, 1, false, "2017-07-10 18:35:29", "2017-07-10 18:35:29"} ```
codecov-io commented 2017-07-10 15:45:50 +00:00 (Migrated from github.com)

Codecov Report

Merging #638 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #638   +/-   ##
=======================================
  Coverage   49.53%   49.53%           
=======================================
  Files          33       33           
  Lines        7039     7039           
=======================================
  Hits         3487     3487           
  Misses       3077     3077           
  Partials      475      475
Impacted Files Coverage Δ
engine.go 56.74% <100%> (ø) ⬆️
xorm.go 69.49% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 39a812d...abe8474. Read the comment docs.

# [Codecov](https://codecov.io/gh/go-xorm/xorm/pull/638?src=pr&el=h1) Report > Merging [#638](https://codecov.io/gh/go-xorm/xorm/pull/638?src=pr&el=desc) into [master](https://codecov.io/gh/go-xorm/xorm/commit/39a812d59d149c55af8a80c3fba3c79771b45df1?src=pr&el=desc) will **not change** coverage. > The diff coverage is `100%`. [![Impacted file tree graph](https://codecov.io/gh/go-xorm/xorm/pull/638/graphs/tree.svg?token=yB5nO1krEe&src=pr&height=150&width=650)](https://codecov.io/gh/go-xorm/xorm/pull/638?src=pr&el=tree) ```diff @@ Coverage Diff @@ ## master #638 +/- ## ======================================= Coverage 49.53% 49.53% ======================================= Files 33 33 Lines 7039 7039 ======================================= Hits 3487 3487 Misses 3077 3077 Partials 475 475 ``` | [Impacted Files](https://codecov.io/gh/go-xorm/xorm/pull/638?src=pr&el=tree) | Coverage Δ | | |---|---|---| | [engine.go](https://codecov.io/gh/go-xorm/xorm/pull/638?src=pr&el=tree#diff-ZW5naW5lLmdv) | `56.74% <100%> (ø)` | :arrow_up: | | [xorm.go](https://codecov.io/gh/go-xorm/xorm/pull/638?src=pr&el=tree#diff-eG9ybS5nbw==) | `69.49% <0%> (ø)` | :arrow_up: | ------ [Continue to review full report at Codecov](https://codecov.io/gh/go-xorm/xorm/pull/638?src=pr&el=continue). > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta) > `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data` > Powered by [Codecov](https://codecov.io/gh/go-xorm/xorm/pull/638?src=pr&el=footer). Last update [39a812d...abe8474](https://codecov.io/gh/go-xorm/xorm/pull/638?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

Thanks!

Thanks!
Sign in to join this conversation.
No description provided.