Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
fix: log error, not just 'error' string
Browse files Browse the repository at this point in the history
  • Loading branch information
haakemon committed Jun 26, 2023
1 parent 867c1af commit b27ae06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/updateDomainRecord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const getCurrentDomainRecord = async ({recordId, domain, authToken}: IGetCurrent

return domain_record.data;
} catch (error) {
logger.error(`${new Date()} - error`);
logger.error(`${new Date()} - ${error}`);
}
return;
};
Expand All @@ -38,7 +38,7 @@ const updateDomainRecordIp = async ({recordId, newIp, domain, authToken}: IUpdat
})
.json();
} catch (error) {
logger.error(`${new Date()} - error`);
logger.error(`${new Date()} - ${error}`);
}
};

Expand All @@ -49,7 +49,7 @@ const getCurrentIp = async () => {

return ip;
} catch (error) {
logger.error(`${new Date()} - error`);
logger.error(`${new Date()} - ${error}`);
}
return;
};
Expand Down

0 comments on commit b27ae06

Please sign in to comment.