Skip to content

Commit

Permalink
Delete logs
Browse files Browse the repository at this point in the history
  • Loading branch information
rlho committed Oct 4, 2024
1 parent 47090d6 commit 13699b2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion booking-app/app/api/safety_training_users/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export async function GET(request: NextRequest) {
range: range,
fields: "values",
});
console.log("emails", response.data.values);

const logEntry = {
logName: process.env.NEXT_PUBLIC_GCP_LOG_NAME + "/safety-training",
Expand Down
6 changes: 0 additions & 6 deletions booking-app/components/src/client/utils/serverDate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ export const serverFormatDate = (
timeZone,
});

console.log("Input:", input);
console.log("Parsed Date:", date.toISOString());
console.log("Zoned Date:", zonedDate.toString());
console.log("Formatted Result:", formattedResult);
console.log("Timezone:", timeZone);

return formattedResult;
} catch (error) {
console.error("Error formatting date:", error, "Input:", input);
Expand Down
7 changes: 0 additions & 7 deletions booking-app/lib/googleClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,16 @@ const refreshAccessTokenIfNeeded = async (oauth2Client) => {
try {
const { credentials } = await oauth2Client.refreshAccessToken();
oauth2Client.setCredentials(credentials);
console.log("Access token refreshed successfully");
console.log(
"New token expiry:",
new Date(oauth2Client.credentials.expiry_date)
);
} catch (error) {
console.error("Error refreshing access token:", error);
throw error;
}
} else {
console.log("Using existing access token");
}
};

const getAuthenticatedClient = async () => {
if (!cachedOAuth2Client) {
console.log("Creating new OAuth2 client");
cachedOAuth2Client = createOAuth2Client();
cachedOAuth2Client.setCredentials({
refresh_token: process.env.GOOGLE_REFRESH_TOKEN,
Expand Down

0 comments on commit 13699b2

Please sign in to comment.