Skip to content

Commit

Permalink
Use 'warn' logging in bootstrap instead of 'info' (#1074)
Browse files Browse the repository at this point in the history
  • Loading branch information
ljdelight authored Nov 20, 2023
1 parent b503832 commit e612be2
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions app/org/maproulette/jobs/Bootstrap.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,13 @@ class Bootstrap @Inject() (appLifeCycle: ApplicationLifecycle, db: Database, con
def start(): Unit = {
if (!config.isBootstrapMode) {
// Check superuser settings at startup and output appropriate warnings
config.superAccounts.headOption match {
case Some("*") =>
logger.info(
"WARNING: Configuration is setting all users to super users. Make sure this is what you want."
)
case Some("") =>
logger.info(
"WARNING: Configuration has NO super users. Make sure this is what you want."
config.superAccounts match {
case List("*") =>
logger.warn(
"Configuration is setting all users to super users. Make sure this is what you want."
)
case Nil =>
logger.warn("Configuration has NO super users. Make sure this is what you want.")
case _ => // do nothing
}
}
Expand Down

0 comments on commit e612be2

Please sign in to comment.