Skip to content

Commit 0406b2d

Browse files
committed
fix using logger before DI
1 parent dcece41 commit 0406b2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SharpIDE.Godot/IdeRoot.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ public void SetSlnFilePath(string path)
155155
var timer = Stopwatch.StartNew();
156156
var (solutionModel, vsSln, solutionSerializer) = await VsPersistenceSolutionService.ReadSolution(path);
157157
timer.Stop();
158-
_logger.LogInformation("Solution model fully created in {ElapsedMilliseconds} ms", timer.ElapsedMilliseconds);
159158
await _nodeReadyTcs.Task;
160159
// Do not use injected services until after _nodeReadyTcs - Services aren't injected until _Ready
160+
_logger.LogInformation("Solution model fully created in {ElapsedMilliseconds} ms", timer.ElapsedMilliseconds);
161161
await _vsPersistenceSolutionService.LoadSolution(path, vsSln, solutionSerializer);
162162
_sharpIdeSolutionAccessor.SolutionModel = solutionModel;
163163
_sharpIdeSolutionAccessor.SolutionReadyTcs.SetResult();

0 commit comments

Comments
 (0)