Skip to content

Commit

Permalink
♻️ Added more decorators
Browse files Browse the repository at this point in the history
  • Loading branch information
mkarlesky committed May 2, 2024
1 parent c48c970 commit ef8f35e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/projectinator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def load_filepath(filepath, method, silent)
# Log what the heck we loaded
if !silent
msg = "Loaded #{'(empty) ' if config.empty?}project configuration #{method} using #{filepath}"
@loginator.log( msg, Verbosity::NORMAL, LogLabels::TITLE )
@loginator.log( msg, Verbosity::NORMAL, LogLabels::CONSTRUCT )
end

return config
Expand Down
6 changes: 4 additions & 2 deletions lib/ceedling/constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ class LogLabels
WARNING = 3 # 'WARNING:'
ERROR = 4 # 'ERROR:'
EXCEPTION = 5 # 'EXCEPTION:'
SEGFAULT = 6 # 'SEGFAULT:'
TITLE = 7 # Seedling decorator only
CONSTRUCT = 6 # 🚧 decorator only
STOPWATCH = 7 # ⏱️ decorator only
SEGFAULT = 8 # ☠️ decorator only
TITLE = 9 # 🌱 decorator only

# Verbosity levels ERRORS – DEBUG default to certain labels or lack thereof
# The above label constants are available to override Loginator's default AUTO level as needed
Expand Down
2 changes: 1 addition & 1 deletion lib/ceedling/rakefile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def log_runtime(run, start_time_s, end_time_s, enabled)
return if duration.empty?

@ceedling[:loginator].out( "\n" )
@ceedling[:loginator].log( "Ceedling #{run} completed in #{duration}", Verbosity::NORMAL, LogLabels::TITLE )
@ceedling[:loginator].log( "Ceedling #{run} completed in #{duration}", Verbosity::NORMAL, LogLabels::STOPWATCH )
end

start_time = nil # Outside scope of exception handling
Expand Down

0 comments on commit ef8f35e

Please sign in to comment.