Skip to content

Commit

Permalink
Minor trace fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jgranick committed Jul 9, 2024
1 parent 0896e4c commit dcbbf86
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/starling/assets/AssetManager.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,7 @@ class AssetManager extends EventDispatcher
* default, it traces 'message' to the console. */
private function log(message:String):Void
{
if (_verbose) trace("[AssetManager]", message);
if (_verbose) trace("[AssetManager] " + message);
}

private function getDictionaryKeys(dictionary:Map<String, Dynamic>, prefix:String="",
Expand Down
2 changes: 1 addition & 1 deletion src/starling/core/Starling.hx
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ class Starling extends EventDispatcher
nativeOverlay.addChild(textField);
stop(true);

trace("[Starling]", message);
trace("[Starling] " + message);
dispatchEventWith(starling.events.Event.FATAL_ERROR, false, message);
}

Expand Down
3 changes: 1 addition & 2 deletions src/starling/rendering/BatchToken.hx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ class BatchToken
/** Creates a String representation of this instance. */
public function toString():String
{
return StringUtil.format("[BatchToken batchID={0} vertexID={1} indexID={2}]",
[ batchID, vertexID, indexID ]);
return '[BatchToken batchID=$batchID vertexID=$vertexID indexID=$indexID]';
}
}

0 comments on commit dcbbf86

Please sign in to comment.