Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log.Warning() -> Log.Info() for missing localised image resources #1348

Merged
merged 2 commits into from
Feb 2, 2022

Conversation

originalfoo
Copy link
Member

This doesn't merit a stack trace in the log (there's a whole bunch of them depending on which language is selected):

+ Warning 222.3841204: Translated file RoadUI.sign_stop_en-gb.png not found!
   at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
   at CSUtil.Commons.Log.Warning(System.String s)
   at TrafficManager.UI.Translation.GetTranslatedFileName(System.String filename, System.String language)
   at TrafficManager.UI.Translation.GetTranslatedFileName(System.String filename)
   at TrafficManager.UI.Textures.RoadUI.OnLevelLoading()
   at TrafficManager.Lifecycle.TMPELifecycle.Load()
   at TrafficManager.Lifecycle.TrafficManagerMod.OnLevelLoaded(LoadMode mode)
   at LoadingWrapper.LoadingWrapper.OnLevelLoaded_Patch4(.LoadingWrapper , UpdateMode )
   at LoadingManager+<LoadLevelComplete>c__Iterator9.MoveNext()
   at LoadingManager.FpsBoosterUpdate()
   at BehaviourUpdater.Updater.Update()

This PR downgrades that Log.Warning() to a Log.Info() thus removing stack trace. If some trace is required (lmk if that is the case!), we could do something like PR #1315.

@originalfoo originalfoo added the Localisation Localised text and features label Feb 2, 2022
@originalfoo originalfoo added this to the 11.6.4-hotfix-5 milestone Feb 2, 2022
@originalfoo originalfoo self-assigned this Feb 2, 2022
@originalfoo originalfoo changed the title Log.Warning() -> Log.Info() Log.Warning() -> Log.Info() for missing localised image resources Feb 2, 2022
@originalfoo originalfoo added the Annoyance Not a bug, but just as annoying label Feb 2, 2022
originalfoo added a commit that referenced this pull request Feb 2, 2022
This release makes some refinements to error checking/logging, and refines the pathfinder edition check/warning.

- [Meta] TM:PE 11.6.4-hotfix-5
- [Meta] Updates to error checking/logging, and refine pathfinder edition checks
- [Updated] Catch and log errors in savegame options save/load #1345 (aubergine18)
- [Updated] Pathfinder edition check refinements #1347 (aubergine18)
- [Updated] Reduce severity of some normal log messages #1348 #1350 (aubergine18)
@krzychu124 krzychu124 merged commit ff4388f into master Feb 2, 2022
@krzychu124 krzychu124 deleted the less-severe-translated-image-logging branch February 2, 2022 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Annoyance Not a bug, but just as annoying Localisation Localised text and features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants