Skip to content

Commit

Permalink
refactor: ♻️ improve token logging and config handling adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Dec 19, 2024
1 parent 20aabcb commit e923056
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/azuretoken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export async function createAzureToken(

// Log the expiration time of the token
logVerbose(
`azure: ${credentialsType || ""} token (${scopes.join(",")}) expires at ${new Date(res.expiresOnTimestamp).toLocaleString()}`
`azure: ${credentialsType || ""} token (${scopes.join(",")}) expires on ${new Date(res.expiresOnTimestamp).toUTCString()}`
)

return res
Expand Down
3 changes: 0 additions & 3 deletions packages/cli/src/nodehost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,6 @@ export class NodeHost implements RuntimeHost {
}

async readConfig(): Promise<HostConfiguration> {
this.azureToken.clear()
this.azureServerlessToken.clear()

const config = await resolveGlobalConfiguration(this.dotEnvPath)
const { envFile, modelAliases } = config
if (modelAliases)
Expand Down

0 comments on commit e923056

Please sign in to comment.