Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary log messages #2625

Merged
merged 1 commit into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import com.terraformation.backend.db.default_schema.GlobalRole
import com.terraformation.backend.db.default_schema.Role
import com.terraformation.backend.db.default_schema.tables.daos.OrganizationsDao
import com.terraformation.backend.file.GoogleDriveWriter
import com.terraformation.backend.log.perClassLogger
import java.net.URI
import java.util.Locale
import org.springframework.stereotype.Controller
Expand Down Expand Up @@ -79,9 +78,7 @@ class AdminController(
@PostMapping("/google")
fun lookUpGoogleFile(@RequestParam url: URI, redirectAttributes: RedirectAttributes): String {
val fileId = googleDriveWriter.getFileIdForFolderUrl(url)
perClassLogger().info("File ID is $fileId")
val driveId = googleDriveWriter.getDriveIdForFile(fileId)
perClassLogger().info("Drive ID is $driveId")

redirectAttributes.successMessage = "Drive ID is $driveId"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.terraformation.backend.auth

import com.terraformation.backend.config.TerrawareServerConfig
import com.terraformation.backend.log.perClassLogger
import jakarta.inject.Named
import jakarta.servlet.http.HttpServletRequest
import jakarta.servlet.http.HttpServletResponse
Expand Down Expand Up @@ -54,7 +53,6 @@ class KeycloakAdminClientImpl(
.bodyToMono<List<UserRepresentation>>()
.block()!!

perClassLogger().warn("Fetched ${users.size} users")
return users
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ import com.terraformation.backend.db.default_schema.FacilityId
import com.terraformation.backend.db.default_schema.tables.daos.DeviceManagersDao
import com.terraformation.backend.db.default_schema.tables.pojos.DeviceManagersRow
import com.terraformation.backend.db.default_schema.tables.references.DEVICE_MANAGERS
import com.terraformation.backend.log.perClassLogger
import jakarta.inject.Named
import java.time.Clock
import org.jooq.DSLContext
import org.jooq.conf.ParamType
import org.jooq.impl.DSL

@Named
Expand Down Expand Up @@ -47,7 +45,6 @@ class DeviceManagerStore(
return dslContext
.selectFrom(DEVICE_MANAGERS)
.where(condition)
.also { perClassLogger().info("Query = ${it.getSQL(ParamType.INLINED)}") }
.fetchInto(DeviceManagersRow::class.java)
}

Expand Down