Skip to content

Commit

Permalink
Refactor internal packages
Browse files Browse the repository at this point in the history
  • Loading branch information
dhumphreys01 authored and Admiral-Piett committed Nov 1, 2024
1 parent 3e612da commit 4e795c4
Show file tree
Hide file tree
Showing 109 changed files with 2,060 additions and 2,232 deletions.
6 changes: 3 additions & 3 deletions app/cmd/goaws.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"time"

"github.com/Admiral-Piett/goaws/app"
"github.com/Admiral-Piett/goaws/app/models"

log "github.com/sirupsen/logrus"

Expand Down Expand Up @@ -46,8 +46,8 @@ func main() {

portNumbers := conf.LoadYamlConfig(filename, env)

if app.CurrentEnvironment.LogToFile {
filename := app.CurrentEnvironment.LogFile
if models.CurrentEnvironment.LogToFile {
filename := models.CurrentEnvironment.LogFile
file, err := os.OpenFile(filename, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0666)
if err == nil {
log.SetOutput(file)
Expand Down
81 changes: 0 additions & 81 deletions app/common/common.go

This file was deleted.

40 changes: 0 additions & 40 deletions app/common/common_test.go

This file was deleted.

Loading

0 comments on commit 4e795c4

Please sign in to comment.