function oneTimeWarning(identifier, message) {
  //>>includeStart('debug', pragmas.debug);
  if (!defined(identifier)) {
    throw new DeveloperError("identifier is required.");
  }
  //>>includeEnd('debug');

  if (!defined(warnings[identifier])) {
    warnings[identifier] = true;
    console.warn(message ?? identifier);
  }
}
Logs a one time message to the console.  Use this function instead of
<code>console.log</code> directly since this does not log duplicate messages
unless it is called from multiple workers.

@function oneTimeWarning

@param {string} identifier The unique identifier for this warning.
@param {string} [message=identifier] The message to log to the console.

@example
for(let i=0;i<foo.length;++i) {
   if (!defined(foo[i].bar)) {
      // Something that can be recovered from but may happen a lot
      oneTimeWarning('foo.bar undefined', 'foo.bar is undefined. Setting to 0.');
      foo[i].bar = 0;
      // ...
   }
}

@private