Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
downgrade logs
  • Loading branch information
levkk committed Sep 18, 2025
commit 6ed1cf81da26841e6d789cee52f2a350dae0c69e
8 changes: 4 additions & 4 deletions pgdog/src/auth/gssapi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub async fn handle_gssapi_auth(
})?
.to_string();

tracing::info!(
tracing::debug!(
"Authentication complete (with final token), principal: {}",
principal
);
Expand All @@ -60,7 +60,7 @@ pub async fn handle_gssapi_auth(
Ok(response)
} else {
// More negotiation needed
tracing::info!(
tracing::debug!(
"server.accept returned token of {} bytes - negotiation continues",
response_token.len()
);
Expand All @@ -77,13 +77,13 @@ pub async fn handle_gssapi_auth(
}
None => {
// Authentication complete
tracing::info!("server.accept returned None - authentication complete");
tracing::debug!("server.accept returned None - authentication complete");
let principal = server
.client_principal()
.ok_or_else(|| GssapiError::ContextError("No client principal found".to_string()))?
.to_string();

tracing::info!("successfully extracted principal: {}", principal);
tracing::debug!("successfully extracted principal: {}", principal);
let response = GssapiResponse {
is_complete: true,
token: None,
Expand Down
6 changes: 3 additions & 3 deletions pgdog/src/auth/gssapi/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ impl GssapiServer {
match ctx.source_name() {
Ok(name) => {
let principal = name.to_string();
tracing::info!(
tracing::debug!(
"Extracted client principal (with token): {}",
principal
);
Expand All @@ -156,14 +156,14 @@ impl GssapiServer {
}
Ok(None) => {
// Context established successfully
tracing::info!("ctx.step returned None - GSSAPI context established successfully");
tracing::debug!("ctx.step returned None - GSSAPI context established successfully");
self.is_complete = true;

// Extract the client principal
match ctx.source_name() {
Ok(name) => {
let principal = name.to_string();
tracing::info!("extracted client principal: {}", principal);
tracing::debug!("extracted client principal: {}", principal);
self.client_principal = Some(principal);
}
Err(e) => {
Expand Down
2 changes: 1 addition & 1 deletion pgdog/src/auth/gssapi/ticket_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ impl TicketManager {
if cache.needs_refresh() {
match cache.refresh() {
Ok(()) => {
tracing::info!("refreshed ticket for {}", server_clone);
tracing::info!("[gssapi] refreshed ticket for \"{}\"", server_clone);
}
Err(e) => {
tracing::error!("failed to refresh ticket for {}: {}", server_clone, e);
Expand Down
Loading