Skip to content

Improve debug output #4

Open
Open
@langpavel

Description

Output of debug package is not much pretty, especially when query got SqlFragment as input (using template tag):

  pg-async query params: ["2016-03-23T22:28:59.609Z","0.0.0","1.8","Platne","Plna","S query: {"_parts":["\n      INSERT INTO \"ruian_file\" (\"import_od\",\"verze_cli\",\"verze_vfr\",\"typ_zaznamu\",\"typ_davky\",\"typ_souboru\",\"datum\",\"transakce_od_id\",\"transakce_od_zapsano\",\"transakce_do_id\",\"transakce_do_zapsano\",\"platnost_dat_isui\",\"platnost_dat_iskn\") VALUES (",",",",",",",",",",",",",",",",",",",",",",",",",") RETURNING id\n    "],"values":["2016-03-23T22:28:59.609Z","0.0.0","1.8","Platne","Plna","ST_UCIS","2016-02-04T00:10:09.000Z","0","2012-06-29T01:36:44.000Z","1104587","2016-02-03T15:59:47.000Z","2016-02-03T14:27:41.000Z","2016-02-03T15:59:47.000Z"],"text":"\n      INSERT INTO \"ruian_file\" (\"import_od\",\"verze_cli\",\"verze_vfr\",\"typ_zaznamu\",\"typ_davky\",\"typ_souboru\",\"datum\",\"transakce_od_id\",\"transakce_od_zapsano\",\"transakce_do_id\",\"transakce_do_zapsano\",\"platnost_dat_isui\",\"platnost_dat_iskn\") VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13) RETURNING id\n    ","rowMode":"array"} +7ms

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions