Skip to content

Commit

Permalink
replace @log_path and @compile_time_info
Browse files Browse the repository at this point in the history
  • Loading branch information
zacky1972 committed Apr 2, 2020
1 parent 610a861 commit 8202acc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/pelemay.ex
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@ defmodule Pelemay do
"""
defmacro defpelemay(functions) do
Logger.add_backend(Pelemay.Logger)
Logger.configure_backend(Pelemay.Logger, path: @log_path)
log_path = Application.app_dir(:pelemay, "priv/info.log")
Logger.configure_backend(Pelemay.Logger, path: log_path)

File.write!(@compile_time_info, "compile_time_info = #{CpuInfo.all_profile() |> inspect()}")
Application.app_dir(:pelemay, "priv/compile_time_info")
|> File.write!("compile_time_info = #{CpuInfo.all_profile() |> inspect()}")

Db.init()

Expand Down

0 comments on commit 8202acc

Please sign in to comment.