diff --git a/gamedoora-user-services.service b/gamedoora-user-services.service index 37ff7c6..d91c57e 100644 --- a/gamedoora-user-services.service +++ b/gamedoora-user-services.service @@ -7,5 +7,18 @@ User=gamedoora ExecStart=/opt/gamedoora/gamedoora-user-services.jar SuccessExitStatus=143 Environment="CONFIG_SERVER=http://localhost:8888" + +# Redirect standard output and standard error to the main log file. +StandardOutput=file:/var/log/gamedoora/user_service_logs/user_services.log +StandardError=file:/var/log/gamedoora/user_service_logs/user_services.log + +# Rotate log based on days, capacity, file size, compress, etc. +# LogsDirectory=/gamedoora/user_service_logs +# RuntimeMaxUse=15M +# RuntimeMaxFileSize=10M + +# Comment RunTimeMaxFileSize and Uncomment below, if instead of file size you want to switch to log size. +# RuntimeKeepFree=500M + [Install] WantedBy=multi-user.target diff --git a/src/test/java/com/gamedoora/backend/userservices/repository/UsersRepositoryTest.java b/src/test/java/com/gamedoora/backend/userservices/repository/UsersRepositoryTest.java index a72c02a..dc1382f 100644 --- a/src/test/java/com/gamedoora/backend/userservices/repository/UsersRepositoryTest.java +++ b/src/test/java/com/gamedoora/backend/userservices/repository/UsersRepositoryTest.java @@ -87,4 +87,4 @@ void findListOfUsers(){ assertNotNull(userList); assertEquals(userList.size() , 1); } -} \ No newline at end of file +}