Changed a few more logging statements

This commit is contained in:
2024-03-22 19:19:46 -05:00
parent cac674e27a
commit 12d4bb06f2
3 changed files with 7 additions and 5 deletions

View File

@@ -3,7 +3,7 @@ import fetchEbayReadToken from "../utils/fetchEbayReadToken.js"; // Adjust the i
import { LoggingLevel, smartLogging } from "../utils/helper.js";
export const itemLookup = async (req, res) => {
smartLogging(LoggingLevel.Debug, ``)
smartLogging(LoggingLevel.Debug, `dataController.itemLookup()`);
const productCode = req.query.productCode;
let oauthToken;
try{
@@ -11,7 +11,7 @@ export const itemLookup = async (req, res) => {
}catch(e){
smartLogging(LoggingLevel.Error, `Error Getting eBay Token: ${e}`);
}
// console.log(productCode);
smartLogging(LoggingLevel.Logging, `Product Code: ${productCode}`);
try {
const response = await fetch(