Skip to content

Commit

Permalink
Change print() to logger:Error()
Browse files Browse the repository at this point in the history
Also test triggering gh actions workflow
  • Loading branch information
mpartio committed Jan 8, 2024
1 parent 566a2fe commit 4ab80bd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions himan-scripts/icon-europe.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function LSPAndCP()
local rlsdata = luatool:Fetch(current_time, current_level, param("RAINL-KGM2"), current_forecast_type)

if not sconvdata or not slsdata or not rconvdata or not rlsdata then
print("Some data not found, aborting")
logger:Error("Some data not found, aborting")
return
end

Expand Down Expand Up @@ -43,7 +43,7 @@ function SnowFall()
local lsdata = luatool:Fetch(current_time, current_level, param("SNL-KGM2"), current_forecast_type)

if not convdata or not lsdata then
print("Some data not found, aborting")
logger:Error("Some data not found, aborting")
return
end

Expand All @@ -68,7 +68,7 @@ function RadGlo()
local dirdata = luatool:Fetch(current_time, current_level, param("RADSWDIR-WM2"), current_forecast_type)

if not difdata or not dirdata then
print("Some data not found, aborting")
logger:Error("Some data not found, aborting")
return
end

Expand All @@ -93,7 +93,7 @@ function H0CFix()
local topodata = luatool:Fetch(srctime, current_level, param("HL-M"), current_forecast_type)

if not h0cdata or not topodata then
print("Some data not found, aborting")
logger:Error("Some data not found, aborting")
return
end

Expand All @@ -116,7 +116,7 @@ function LCLFix()
local topodata = luatool:Fetch(srctime, current_level, param("HL-M"), current_forecast_type)

if not lcldata or not topodata then
print("Some data not found, aborting")
logger:Error("Some data not found, aborting")
return
end

Expand Down Expand Up @@ -157,7 +157,7 @@ function TSnowFix()
local snowhdata = luatool:Fetch(current_time, current_level, param("SD-M"), current_forecast_type)

if not snowtdata or not snowhdata then
print("Some data not found, aborting")
logger:Error("Some data not found, aborting")
return
end

Expand Down

0 comments on commit 4ab80bd

Please sign in to comment.