fix(temporal): removing redundant information

This commit is contained in:
Dylan R. E. Moonfire 2022-06-07 10:05:20 -05:00
parent 8da6067bcc
commit 3898396afe
2 changed files with 2 additions and 5 deletions

View file

@ -59,9 +59,6 @@ public class DatePipelineCommandOption : IPipelineCommandOption
ZonedDateTime dateTime = now.InZone(this.timekeeper.DateTimeZone); ZonedDateTime dateTime = now.InZone(this.timekeeper.DateTimeZone);
string formatted = dateTime.ToString("G", CultureInfo.InvariantCulture); string formatted = dateTime.ToString("G", CultureInfo.InvariantCulture);
this.logger.Information( this.logger.Information("Setting date/time to {When:l}", formatted);
"Setting date/time to {When:l} in time zone {Zone:l}",
formatted,
this.timekeeper.DateTimeZone);
} }
} }

View file

@ -62,7 +62,7 @@ public static class NitrideTemporalBuilderExtensions
Timekeeper timekeeper = scope.Resolve<Timekeeper>(); Timekeeper timekeeper = scope.Resolve<Timekeeper>();
timekeeper.DateTimeZone = config.DateTimeZone; timekeeper.DateTimeZone = config.DateTimeZone;
logger.Information("Setting time zone to {Zone}", timekeeper.DateTimeZone); logger.Verbose("Setting time zone to {Zone:l}", timekeeper.DateTimeZone);
}); });
} }