Skip to content

Commit

Permalink
Merge pull request #11 from cloud-barista/feature/update-comment
Browse files Browse the repository at this point in the history
update comment, 영문화
  • Loading branch information
heedaeshin authored Aug 21, 2024
2 parents 3ec6e26 + 53dd66f commit a5d1e29
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ services:
# logging:
# driver: "json-file"
# options:
# max-size: "5m" # 로그 파일 최대 사이즈
# max-file: "10" # 로그 파일 최대 수
# max-size: "5m" # max-size each log file
# max-file: "10" # max-index, log files

## OPTIONAL RESOURCE LIMITS
# deploy:
# resources:
# limits:
# cpus: "0.50" # 최대 CPU 사용량: 0.5 (50% of a single CPU core)
# memory: "512M" # 최대 메모리 사용량: 512MB
# cpus: "0.50" # Capacity CPU : 0.5 (50% of a single CPU core)
# memory: "512M" # Capacity Mem : 512MB
# reservations:
# cpus: "0.25" # 예약된 최소 CPU 사용량: 0.25 (25% of a single CPU core)
# memory: "256M" # 예약된 최소 메모리 사용량: 256MB
# cpus: "0.25" # allocated CPU: 0.25 (25% of a single CPU core)
# memory: "256M" # allocated Mem: 256MB
10 changes: 5 additions & 5 deletions internal/log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,21 @@ func LogFile() {
logrus.WithError(err).Fatal("Failed to get executable path")
}

// 바이너리 파일의 디렉토리 경로 가져오기
// Get the directory path of the binary file
execDir := filepath.Dir(execPath)

// 로그 디렉토리 경로 설정
// Set the log directory path
logDir := filepath.Join(execDir, "log")

// 로그 디렉토리 생성
// Create the log directory
if err := os.MkdirAll(logDir, os.ModePerm); err != nil {
logrus.WithError(err).Fatal("Failed to create log directory")
}

// 로그 파일 경로 설정
// Set the log file path
logFilePath := filepath.Join(logDir, "data-manager.log")

// 로그 파일 열기 또는 생성
// Open or create the log file
logFile, err := os.OpenFile(logFilePath, os.O_CREATE|os.O_APPEND|os.O_RDWR, os.FileMode(0644))
if err != nil {
logrus.WithError(err).Fatal("Failed to create log file")
Expand Down

0 comments on commit a5d1e29

Please sign in to comment.