os-threat / Stix-ORM

GNU Affero General Public License v3.0
4 stars 0 forks source link

Move logging statements in query file #11

Closed brettforbes closed 1 year ago

brettforbes commented 1 year ago

Currently,

  1. the match and insert queries are logged on lines 33 and 34
  2. the response from the iterator are logged on lines 144 and 146
image

This results in the typeql statements being logged separately to their respective response statements. Ideally, for each object the match/insert statements are logged right before each response statement

Can we move the logging statements on lines 33 and 34, to right before line 144 please? So that the logging is on an object by object basis. Thanks

brettforbes commented 1 year ago

Also, the delet statements do not print out a match/delete set of query statements, like add does. Can we make delete print the same as add on INFO, and also rearrange the statements so

For each object:

  1. INFO Log the match statement (for add/delete)
  2. INFO Log the insert/delete statement
  3. INFO Log the iterator response for that object
  4. Repeat per object
brettforbes commented 1 year ago

I cannot fix the erros until this is done, i'm just wasting time because i cannot track down the errors. The logging your system provides is too abstracted to track down errors

I cant get it working, because i cannot find the problem