Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Removing logs
Browse files Browse the repository at this point in the history
  • Loading branch information
rehabaam committed Nov 11, 2023
1 parent 591163f commit 4388442
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion services/commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ func Test_getSessions(t *testing.T) {
data, _ := http.NewRequest("GET", "http://localhost:8080/api/v1/sessions", nil)
rw := httptest.NewRecorder()

fmt.Println("test")
type args struct {
w http.ResponseWriter
r *http.Request
Expand Down
1 change: 0 additions & 1 deletion services/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ func readFile(endPoint string) (string, error) {
// Open our jsonFile
jsonFile, err := os.Open(filepath.Clean(fileName))

fmt.Println("File", jsonFile, err)
// if we os.Open returns an error then handle it
if err != nil {
logger.AppLogger(labels.Error, "Error while opening "+endPoint+" file!", time.Since(t).Nanoseconds(), labels.Error+"|"+err.Error())
Expand Down
1 change: 0 additions & 1 deletion services/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ func Test_readFile(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
got, err := readFile(tt.args.endPoint)
fmt.Println(got)
if (err != nil) != tt.wantErr {
t.Errorf("readFile() error = %v, wantErr %v", err, tt.wantErr)
return
Expand Down

0 comments on commit 4388442

Please sign in to comment.