chore: Improve agent logging (#3483)

This commit is contained in:
Kyle Carberry
2022-08-12 07:01:00 -05:00
committed by GitHub
parent ca342067b3
commit 16c12e976e
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -73,6 +73,7 @@ func workspaceAgent() *cobra.Command {
return nil
}
logger.Info(cmd.Context(), "starting agent", slog.F("url", coderURL), slog.F("auth", auth))
client := codersdk.New(coderURL)
if pprofEnabled {
@@ -138,6 +139,7 @@ func workspaceAgent() *cobra.Command {
}
if exchangeToken != nil {
logger.Info(cmd.Context(), "exchanging identity token")
// Agent's can start before resources are returned from the provisioner
// daemon. If there are many resources being provisioned, this time
// could be significant. This is arbitrarily set at an hour to prevent