Merge pull request #1000 from ConsenSys/fix/log-format

Fix jsonv2 log format
pull/1002/head
Nikhil Parasaram 6 years ago committed by GitHub
commit 8254bf1f5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      mythril/analysis/report.py
  2. 2
      mythril/interfaces/cli.py

@ -185,7 +185,7 @@ class Report:
return {} return {}
logs = [] # type: List[Dict] logs = [] # type: List[Dict]
for exception in self.exceptions: for exception in self.exceptions:
logs += [{"level": "error", "hidden": "true", "error": exception}] logs += [{"level": "error", "hidden": "true", "msg": exception}]
return {"logs": logs} return {"logs": logs}
def as_swc_standard_format(self): def as_swc_standard_format(self):

@ -47,7 +47,7 @@ def exit_with_error(format_, message):
"sourceFormat": "", "sourceFormat": "",
"sourceList": [], "sourceList": [],
"meta": { "meta": {
"logs": [{"level": "error", "hidden": "true", "error": message}] "logs": [{"level": "error", "hidden": "true", "msg": message}]
}, },
} }
] ]

Loading…
Cancel
Save