Skip to content

Commit

Permalink
style: 현재 시각 용어 통일
Browse files Browse the repository at this point in the history
  • Loading branch information
BangDori committed Apr 29, 2024
1 parent 656c461 commit 62b0a87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/shared/axios/dir/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function logApiRequestOnDev(config: InternalAxiosRequestConfig) {
const title = `${method?.toUpperCase()} ${url}`;

console.group(`🛫 [API 요청] ${title}`);
console.log(`현재 시간: ${getCurrentDate()}`);
console.log(`현재 시각: ${getCurrentDate()}`);
console.log(`요청 데이터: ${JSON.stringify(data, null, 2) || 'X'}`);
console.groupEnd();
}
Expand All @@ -32,7 +32,7 @@ export function logApiResponseOnDev(response: AxiosResponse) {
const httpStatus = `${status} ${statusText}`;

console.group(`🛬 [API 응답] ${title}`);
console.log(`현재 시간: ${getCurrentDate()}`);
console.log(`현재 시각: ${getCurrentDate()}`);
console.log(`HTTP 응답 코드: ${httpStatus}`);
console.log(`서버 응답 코드: ${code}`);
console.log(`서버 응답 데이터: ${JSON.stringify(data, null, 2)}`);
Expand All @@ -48,7 +48,7 @@ export function logApiErrorOnDev(error: AxiosError) {
const title = `${method?.toUpperCase()} ${url}`;

console.group(`🚨 [API 에러] ${title}`);
console.log(`현재 시간: ${getCurrentDate()}`);
console.log(`현재 시각: ${getCurrentDate()}`);
console.log(`에러 코드: ${code}`);
console.log(`에러명: ${error.message}`);
console.groupEnd();
Expand Down

0 comments on commit 62b0a87

Please sign in to comment.