Skip to content

Visual separation between tests#46

Open
AltPlusF4 wants to merge 2 commits intoSchrotty:masterfrom
AltPlusF4:master
Open

Visual separation between tests#46
AltPlusF4 wants to merge 2 commits intoSchrotty:masterfrom
AltPlusF4:master

Conversation

@AltPlusF4
Copy link

For better troubleshooting, I add dividing lines to the pricefield.log before and after each test

Some sample outputs. New lines are marked with >:

> [2021-01-15 11:08:20] Start test "simpleConnect2()"
  [2021-01-15 11:08:22]  DEBUG  SEND: USER elisabeth * * :Chloe Elisabeth Price
  [2021-01-15 11:08:25]  DEBUG  SEND: NICK chloe
  [2021-01-15 11:08:25]  DEBUG  RECV: :0.0.0.0 001 chloe :Welcome to the Internet Relay Network chloe!elisabeth@127.0.0.1
  
  [2021-01-15 11:08:25]  DEBUG  RECV: :0.0.0.0 001 chloe :Welcome to the Internet Relay Network chloe!elisabeth@127.0.0.1
  [2021-01-15 11:08:25]  DEBUG  RECV: :0.0.0.0 002 chloe :Your host is 0.0.0.0, running version 1.0
  
  [2021-01-15 11:08:25]  DEBUG  RECV: :0.0.0.0 002 chloe :Your host is 0.0.0.0, running version 1.0
  [2021-01-15 11:08:25]  DEBUG  RECV: :0.0.0.0 003 chloe :This server was created 15.01.2021 11:08
  
  [2021-01-15 11:08:25]  DEBUG  RECV: :0.0.0.0 003 chloe :This server was created 15.01.2021 11:08
  [2021-01-15 11:08:25]  DEBUG  RECV: :0.0.0.0 004 chloe 0.0.0.0 1.0 ao mtov
  
  [2021-01-15 11:08:25]  DEBUG  RECV: :0.0.0.0 004 chloe 0.0.0.0 1.0 ao mtov
  [2021-01-15 11:08:25]  DEBUG  RECV: :0.0.0.0 251 chloe :There are 1, users and 0 services on 1 servers
  
  [2021-01-15 11:08:25]  DEBUG  RECV: :0.0.0.0 251 chloe :There are 1, users and 0 services on 1 servers
  [2021-01-15 11:08:25]  DEBUG  RECV: :0.0.0.0 252 chloe 0 :operator(s) online
  
  [2021-01-15 11:08:25]  DEBUG  RECV: :0.0.0.0 252 chloe 0 :operator(s) online
  [2021-01-15 11:08:25]  DEBUG  RECV: :0.0.0.0 253 chloe 0 :unknown connection(s)
  
  [2021-01-15 11:08:25]  DEBUG  RECV: :0.0.0.0 253 chloe 0 :unknown connection(s)
  [2021-01-15 11:08:25]  DEBUG  RECV: :0.0.0.0 254 chloe 0 :channesl formed
  
  [2021-01-15 11:08:25]  DEBUG  RECV: :0.0.0.0 254 chloe 0 :channesl formed
  [2021-01-15 11:08:25]  DEBUG  RECV: :0.0.0.0 255 chloe :I have 1 clients and 1 servers
  
  [2021-01-15 11:08:25]  DEBUG  RECV: :0.0.0.0 255 chloe :I have 1 clients and 1 servers
  [2021-01-15 11:08:25]  DEBUG  RECV: :0.0.0.0 422 chloe :MOTD File is missing
  
  [2021-01-15 11:08:25]  DEBUG  RECV: :0.0.0.0 422 chloe :MOTD File is missing
> [2021-01-15 11:08:25] --------------------------------------------------------------------------------
  
> [2021-01-15 11:08:25] Start test "noUnexpectedWelcome1()"
  [2021-01-15 11:08:27]  DEBUG  SEND: NICK chloe
> [2021-01-15 11:08:30] --------------------------------------------------------------------------------

Comment on lines +176 to +178
System.err.println(Template.get("LOG")
.single("type", new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(new Date()))
.single("message", message).render());
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I overlooked the log() method inside the Template class, this would make the call easier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant