Sys.load_resource warning spam (DEF-1116)

#1

I am using sys.load_resource to find some files. I have several paths, so I check filename in every path.
And I get a lot of
WARNING:SCRIPT: Failed to load resource: filename (-3)

And I cant use io to load resource from resources bundle
So, there is way to disable this WARNING logs?

1 Like

#2

Currently there is no way. I think perhaps we should remove the warning and do like this instead:

local data, err = sys.load_resource(filename)
if not data then
	print(err) -- Failed to load resource: filename (-3)
	return
end
print(data)
1 Like

#3

We’re maybe going to look into this next sprint. Old ticket for this: DEF-1116

2 Likes

#4

Up theme. Can it be solved in next release?

0 Likes

#5

I’m afraid it’s been down prioritised due to other issues that we consider more important.

Double checking: This is only for not showing the warning in the console right? There is no other problem with sys.load_resource()?

0 Likes

#6

Yea, it only console logging spam

0 Likes