refactor: provenance api log

feat/axum
Tomáš Mládek 2023-09-07 21:26:36 +02:00
parent 84e0f8f29b
commit 5284d9435e
1 changed files with 7 additions and 1 deletions

View File

@ -115,7 +115,13 @@ export class UpEndApi {
value: IValue,
provenance?: string
): Promise<Address> {
dbg("Putting %s = %o for %s (%s)", attribute, value, entity, provenance);
dbg(
"Putting %s = %o for %s%s",
attribute,
value,
entity,
provenance ? ` (Provenance: ${provenance})` : ""
);
let url = `${this.apiUrl}/obj/${entity}/${attribute}`;
if (provenance) {
url += `?provenance=${provenance}`;