Skip to content

Commit

Permalink
fix configure Logging from internal
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Mar 5, 2024
1 parent 772b3c9 commit 71a422d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/optimization/model_internal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ end

get_recorders(internal::ModelInternal) = internal.recorders

function configure_logging(internal::ModelInternal, file_mode)
function configure_logging(internal::ModelInternal, file_name, file_mode)
return configure_logging(;
console = true,
console_stream = stderr,
console_level = internal.console_level,
file = true,
filename = joinpath(internal.output_dir, PROBLEM_LOG_FILENAME),
filename = joinpath(internal.output_dir, file_name),
file_level = internal.file_level,
file_mode = file_mode,
tracker = nothing,
Expand Down
3 changes: 2 additions & 1 deletion src/optimization/optimization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import ..InfrastructureSystems:
InfrastructureSystemsComponent,
Results,
TimeSeriesCacheKey,
TimeSeriesCache
TimeSeriesCache,
configure_logging

export OptimizationProblemResults
export OptimizationProblemResultsExport
Expand Down

0 comments on commit 71a422d

Please sign in to comment.