Skip to content

Commit

Permalink
Merge pull request #647 from minvws/security/c2-log-level
Browse files Browse the repository at this point in the history
C2: Loggin to much sensitive info
  • Loading branch information
Rool authored Jul 22, 2021
2 parents 8c5a51b + c482824 commit b657194
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Sources/CTR/Infrastructure/Utilities/Logging.swift
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public final class LogHandler: Logging {

isSetup = true

let level = Bundle.main.infoDictionary?["LOG_LEVEL"] as? String ?? "debug"
let level = Bundle.main.infoDictionary?["LOG_LEVEL"] as? String ?? "error"

switch level {
case "verbose":
Expand Down
14 changes: 5 additions & 9 deletions project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,6 @@ settings:
LD_RUNPATH_SEARCH_PATHS:
- "$(inherited)"
- "@executable_path/Frameworks"
configs:
Development:
LOG_LEVEL: debug
FirebaseAcceptance:
LOG_LEVEL: debug
FirebaseProduction:
LOG_LEVEL: error
AppStore:
LOG_LEVEL: error

# - Target Templates (i.e. shared default settings for targets):

Expand Down Expand Up @@ -137,17 +128,22 @@ targetTemplates:
NETWORK_CONFIGURATION: ACC # bananahalen no longer works.
CODE_SIGN_IDENTITY: iPhone Developer
VALIDATE_PRODUCT: NO
LOG_LEVEL: debug
FirebaseAcceptance:
NETWORK_CONFIGURATION: ACC
LOG_LEVEL: error
FirebaseProduction:
NETWORK_CONFIGURATION: Production
LOG_LEVEL: error
AppStore:
NETWORK_CONFIGURATION: Production
LOG_LEVEL: error
info:
properties:
# Dynamic properties (APP_FLAVOR etc) here are set at build time, so can still vary based on a Configuration.
NETWORK_CONFIGURATION: $(NETWORK_CONFIGURATION)
APP_FLAVOR: ${APP_FLAVOR}
LOG_LEVEL: ${LOG_LEVEL}
CFBundleDevelopmentRegion: nl_NL
CFBundleExecutable: $(EXECUTABLE_NAME)
CFBundleName: ${DISPLAY_NAME}
Expand Down

0 comments on commit b657194

Please sign in to comment.