2 Commits

Author SHA1 Message Date
Gregory Wells
ac20f9172d implement the first log message 2026-03-24 16:57:28 -04:00
Gregory Wells
b96f65c294 Redo File structure 2026-03-24 16:52:22 -04:00
8 changed files with 13 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ A simple, lightweight web application for managing user profile photos in a Free
1. **Clone the Repository** 1. **Clone the Repository**
```bash ```bash
git clone https://git.astraltech.xyz/gawells/Self-Service-Dashboard git clone https://git.astraltech.xyz/gawells/Self-Service-Dashboard
cd account-manager cd Self-Service-Dashboard
``` ```
2. **Configure the Application** 2. **Configure the Application**
@@ -39,7 +39,7 @@ A simple, lightweight web application for managing user profile photos in a Free
5. **Run the Server** 5. **Run the Server**
```bash ```bash
go run src/*.go go run ./src/main/
``` ```
The application will be available at `http://<host>:<port>`. The application will be available at `http://<host>:<port>`.

7
src/logging/logging.go Normal file
View File

@@ -0,0 +1,7 @@
package logging
import "log"
func Info(message string) {
log.Print(message)
}

View File

@@ -11,6 +11,8 @@ import (
"strings" "strings"
"sync" "sync"
"time" "time"
"astraltech.xyz/accountmanager/src/logging"
) )
var ( var (
@@ -306,6 +308,8 @@ func cleanupSessions() {
} }
func main() { func main() {
logging.Info("Starting the server")
var err error = nil var err error = nil
blankPhotoData, err = os.ReadFile("static/blank_profile.jpg") blankPhotoData, err = os.ReadFile("static/blank_profile.jpg")