Skip to content

Commit

Permalink
small trace cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
MondayHopscotch committed Oct 4, 2021
1 parent c76db4a commit 1b0223c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/config/Configure.hx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ class Configure {
// Take the first half explicitly, as splitting on '=' might have unexpected
// behavior if the token has '=' characters in it
analyticsToken = define.substr(0, Std.int(define.length / 2));
trace("no valid analytics token found in API_KEY define, setting dev mode to true");
devMode = devMode || analyticsToken.length <= 0;
if (analyticsToken.length <= 0) {
trace("no valid analytics token found in API_KEY define, setting dev mode to true");
devMode = true;
}
} else {
trace('No API_KEY compile flag found. Production metrics will not work.');
devMode = true;
Expand Down

0 comments on commit 1b0223c

Please sign in to comment.